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!

Word Merge Database Field

Status
Not open for further replies.

vlree

IS-IT--Management
Jan 16, 2004
31
US
Win2000/MSAccess2000/WinXPPro
I ran across this article on the MSNDeveloper site, which near the end describes how to use a {Database \d} field in Word. I have copied the code exactly (I hope), changing only the path and attempted to link to the Northwind db but I am getting Error! Cannot open data source.

{DATABASE \d
"C:\\ VictoriasStuff\\DBTestWord\\Northwind.mdb" \c
"DSN=MS Access Databases;DBQ=C:\\ VictoriasStuff\\DBTestWord\\Northwind.mdb;DRIVERId=25;FIL=MS Access;MaxBufferSize=2048;PageTimeOut=5;" \s "SELECT 'OrderID','CustomerID' FROM 'ORDERS' WHERE (('CustomerID' = 'ALFKI'))" \h}

MSN Article
 
Yes I believe so, but if you would like to be more specific, I will check your suggestions.
 
From your control panel:
> administrative tools icon
> Data sources (odbc) icon

On the System DSN tab
If your data set name is not there then yoy need to create a new one

Add > Driver (SQL Server or some other)
Click finish and follow the instructions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top