I'm having trouble sending a set of query results to MS Word. I open Word and add a document, send text ok, now I want to send the results of a query and can't get that to work.
I tried and failed to get the syntax correct for the insertdatabase method. I've tried things like:
With wDoc
.Content.InsertAfter ("Hi" 'this works
.Content.InsertDatabase(wdTableFormatSimple2, 191, False, "Query CompanyResults" 'this fails
.SaveAs Filename:="c:\test.doc"
end with
I'm sure my syntax is completely off, but I can't seem to find documentation on how to fix it! Many thanks for any help! X-)
I tried and failed to get the syntax correct for the insertdatabase method. I've tried things like:
With wDoc
.Content.InsertAfter ("Hi" 'this works
.Content.InsertDatabase(wdTableFormatSimple2, 191, False, "Query CompanyResults" 'this fails
.SaveAs Filename:="c:\test.doc"
end with
I'm sure my syntax is completely off, but I can't seem to find documentation on how to fix it! Many thanks for any help! X-)