Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One-to-many tables for mail merge
Message
From
20/08/2005 10:07:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
One-to-many tables for mail merge
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01042481
Message ID:
01042481
Views:
56
Hi,
I would like to have one-to-many relationship table for mailmerge doc. As I know, MS Word doesnt provide diurect way to do this. I got to use DATABASE field code for this. I search thru internet, and found some sample code to accomplish it via merge field using MS Access database. I amend the merge field to VFP database. However, MS Word keeps complaining that unable to open data source. Pls advise.

{DATABASE \d "C:\\data1.dbc " \c "Driver={Microsoft Visual FoxPro Driver};UID=;PWD=;SourceDB=c:\data1.dbc;SourceType=DBC;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;" \s "SELECT * FROM orders where cnoee = '{ MERGEFIELD cnoee }'" \l "4" \b "447" \h}

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform