Im using access to edit Word documents, and im using this code (example) to fill formfields in the document:
.FormFields("txtProsjektNavn").result = DLookup("txt", dbName, "key =
'byggNavn'")
.FormFields("txtProsjektNr").result = DLookup("value1", dbName, "key =
'prosjektNr'")
.FormFields("txtOverblikk").result = DLookup("txt", dbName, "key =
'txtOverblikk'")
.FormFields("txtByggEier").result = DLookup("txt", dbName, "key =
'byggEier'")
This is all working fine and dandy, however. Some of these values needs to be repeated several times in the document. Ive figured that giving 2 formfields the same bookmark name in the word document is a no-no. So instead of having to create lots of formfields with different names, i attempted to create REF fields that refered to the already made form fields, however, they do not update when access updates the formfields themselves.
Does anyone have a solution to this or do I simply need to make lots of formfields with different names, like: text1, text2, text3 and then have access fill them all with the same value.