S
Scafidel
Hello,
I have a form (Formname) with a query subform (Subform_Query) that I use to
merge information to a Word doc. via bookmarks. The merge uses information
from the main form and works fine for the first field, [Person] of the
subform, but I can't figure out how to call the next field or record under
[Person] and the next, etc. I use this code for the first field.
This works for first instance.
.ActiveDocument.Bookmarks("Person1Bookmark").Select
..Selection.Text = (DLookup("Person", "Subform_Query",
"[ID]=(Forms!Formname!ID)"))
How do I name or reference the next "Person"?
Thanks
I have a form (Formname) with a query subform (Subform_Query) that I use to
merge information to a Word doc. via bookmarks. The merge uses information
from the main form and works fine for the first field, [Person] of the
subform, but I can't figure out how to call the next field or record under
[Person] and the next, etc. I use this code for the first field.
This works for first instance.
.ActiveDocument.Bookmarks("Person1Bookmark").Select
..Selection.Text = (DLookup("Person", "Subform_Query",
"[ID]=(Forms!Formname!ID)"))
How do I name or reference the next "Person"?
Thanks