Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.mailmerge.fields
|
|||
|
|||
CSV file as source for DATABASE field
I'm trying to use a CSV file and a DATABASE field to programatically
insert a table into a mail merge document. In the document I've put something like: { DATABASE \d "{ MERGEFIELD table_csv_file }" \l "2" \b "47" \* MERGEFORMAT } I then write a temporary CSV file, put the filename in the table_csv_file field in my main CSV file and kick off the mail merge using the latter as its data source. It basically works. Unfortunately when the template document is first loaded I get the error: "This data source cannot be opened because it is not supported by the application" If I click 'OK', it carries on and merges correctly, including the table. It seems to be complaining because before the merge takes place the field is unset and therefore doesn't point to a valid data source. Any ideas how I can suppress this error or get around it some other way? Many thanks for any help, Martin. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Missing date field in file select field (get data source) | Mailmerge | |||
database field - merge single field from excel list | Microsoft Word Help | |||
How can I maintain a database used as a source for mail functions | Microsoft Word Help | |||
How can I maintain a database used as a source for mail functions | Mailmerge | |||
how do I add a field to the data source file address list once I . | Mailmerge |