I'm trying to do something that I think is fairly simple: I've got a document, with several fields. I want to--via code from either Access application or VB application--automatically enter text into each of the fields. Some of the fields are dropdowns, some just text.
Now, I got thrown off track when I started looking at the Fields colletion--it seems each field is also a Bookmark? Anyway, I just want to loop through the Fields Collection (Or Bookmarks or whatever these are??) and enter text in each one based on data I get from a database.
I'm fine with the code for database stuff and opening the word document object and all of that, but when I get to the Field (or is it Bookmark) object, I don't see any method that has anything to do with assigning a value, and no Property like ".Value" or ".Text". There is a .Data, but I get an error saying "Field can't contain Data" when I access this property.
Thanks for any help on this,
--Jim
Now, I got thrown off track when I started looking at the Fields colletion--it seems each field is also a Bookmark? Anyway, I just want to loop through the Fields Collection (Or Bookmarks or whatever these are??) and enter text in each one based on data I get from a database.
I'm fine with the code for database stuff and opening the word document object and all of that, but when I get to the Field (or is it Bookmark) object, I don't see any method that has anything to do with assigning a value, and no Property like ".Value" or ".Text". There is a .Data, but I get an error saying "Field can't contain Data" when I access this property.
Thanks for any help on this,
--Jim