Hey guys!
So currently I have a bit of simple VBA that opens a query in Microsoft word as an RTF:
DoCmd.OutputTo acOutputQuery, "Disclaimed_Report_Excel", _
acFormatRTF, "Disclaimed Well Licenses.rtf", True
My user then has to copy and paste the table into a different word template.
I want to bypass the middle step, sending my query directly from access to the word template.
I have had a lot of success transferring large string from access to word using the following approach:
.FormFields("fldWHEREAS").Result = "" 'Clear anything currently in the form's field
.Bookmarks("fldWHEREAS").Range.Fields(1).Result.Text = Forms![Abandonment Orders]![Text211]
.Visible = True
.Activate
But I am really not sure how/if it could be modified to export a table instead of a string....
Thanks so so much for any insight!
So currently I have a bit of simple VBA that opens a query in Microsoft word as an RTF:
DoCmd.OutputTo acOutputQuery, "Disclaimed_Report_Excel", _
acFormatRTF, "Disclaimed Well Licenses.rtf", True
My user then has to copy and paste the table into a different word template.
I want to bypass the middle step, sending my query directly from access to the word template.
I have had a lot of success transferring large string from access to word using the following approach:
.FormFields("fldWHEREAS").Result = "" 'Clear anything currently in the form's field
.Bookmarks("fldWHEREAS").Range.Fields(1).Result.Text = Forms![Abandonment Orders]![Text211]
.Visible = True
.Activate
But I am really not sure how/if it could be modified to export a table instead of a string....
Thanks so so much for any insight!