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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using VBA to insert MS Word 2000 Form fields

Status
Not open for further replies.

Worsty

Programmer
Oct 27, 2004
34
US
We have an application in MS Access that merges data from the database into a Word Form. The Word Form contains Word Form Fields. Because we are merging the form fields are lost after the merge. I understand that there is a way to insert Word Form Fields in VBA after the merge. Could anyone give me some guidance as to how to do this? A sample piece of code would be very helpful.

Thanks in advance
 


When I set break on All Errors it broke here in the RidesMergeWord Function
Set wordApp = GetObject(, "Word.Application")

I got a Runtime Error429 ActiveX Component can't create object
 
Hi Worsty,

I would recomend doing a search on google and reading up about late and early binding, and the differences between CreateObject and GetObject. Very important concepts to understand and they will help you with the above error.





Chance,

Filmmaker, taken gentleman and He tan e epi tas
 
Chance:
Thanks so much for your help! We'll do some research.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top