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

Reading random record(s) into Word. Help!

Status
Not open for further replies.

brianvic

IS-IT--Management
Feb 21, 2003
1
GB
I would like to update fields in a Word document by using a macro to read a record from one or more MySQL tables. The required record is different for each document, but I would like to just use the one macro.

Using MS Query I can not set parameter values (not allowed) and without them it reads every record from the database. Within MS Query this is relatively fast, but within Word you can see it reading each record in. It's just too slow to be of use.

Does anyone know of any way in which Word can read a single record from a MySQL table. Which record is determined by the document name and isn't a problem, but getting word to just retrieve this record is. Any help would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top