Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting some data fields to MS Word

Status
Not open for further replies.

Chrisma

Programmer
Feb 6, 2006
15
AU
I have 5 word template ready. I need to export the following field from MS Access 2000 to MS Word 2000.

Lastname, First name, Company Name,Address and position

I need to do it in VB code.

please guide me on how to do it in function.
 
Chrisma,

There are several ways and if you do an archive search you will turn up the code details. Perhaps the easiest approach is to set bookmarks in the Word doc. Then in VB/VBA, open the Word doc, open a recordset, reference the bookmarks and pass the data.

Cheers,
Bill
 
hi Bill,

can you guide me which site i can find a VBA sample code for this.

I have a bookmark to all my word template, now I need a sample code on how to do it in VBA.


thanks for your help
 
Thanks FormerTexan.

Its really a great help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top