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

Retrieve data from ACCESS file from WORD

Status
Not open for further replies.

scriverb

Programmer
May 17, 2002
4,485
US
Please see thread: thread705-838980

I want to retrieve data from a table in an ACCESS database front-end file. This table has one record only and I want to retrieve a field that has a path string to word templates on a server. This path may change with the specific site.

So, through code in a MS Word 07 template I would like to read the access database and retrieve a fields value. Store it in a global variable and use it in macros through the template that is opened.

Table: tblDBParameters
Field: PathToEForms
Location: c:\access\lodwtbls


I am opening word through a shell statement and was attempting to pass this path string through the /cmd command line parameter when opening word. But, to no avail cannot seem to get the value passed.

Any ideas please.

Bob Scriver
[blue]Want the best answers? See FAQ181-2886[/blue]


 
Oh, yes, it is WORD 97. Client is still using ACCESS 97 and Word 97.

Bob Scriver
[blue]Want the best answers? See FAQ181-2886[/blue]


 
Pleae see thread: thread705-838980 RoyVidar and TonyJollans conspired to provide a solution to this problem.

Bob Scriver
[blue]Want the best answers? See FAQ181-2886[/blue]


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top