Access to Word via comand button (1 Viewer)

alastair69

Registered User.
Local time
Yesterday, 23:05
Joined
Dec 21, 2004
Messages
562
the following is a line of code that places one line of code into the word document, but i now need carryout a loop on this to get other data line into the word document. I am not sure to go about this has anybody got any ideas.

'tbl_Photo_No
objWord.ActiveDocument.Bookmarks("tbl_Photo_No").Select
objWord.Selection.Text = Forms![frm_Property_Sheet_Holder]![Frm_Property_Sheet]![Form1]![Photo_Number]

any information would be very useful to me.

Alastair
 

alastair69

Registered User.
Local time
Yesterday, 23:05
Joined
Dec 21, 2004
Messages
562
would you need to count the number of records some how on the form and then reference that back to the vba code, i am not sure if i am on the right track.
 

alastair69

Registered User.
Local time
Yesterday, 23:05
Joined
Dec 21, 2004
Messages
562
It could be the find next command that i need
 

Users who are viewing this thread

Top Bottom