G
Guest
Hi Everyone
I need to send names and addresses to an excel spreadsheet to use as a
header for mail merge labels. The user can choose patients on a form and opt
to create lables only for patients/only for their doctors/or for patients and
their doctors. So I have 3 queries that can be exported to excel. Because
the three queries have different names, their results are ending up on
different pages of the excel sheet corresponding to the query name. Is there
a way to specify the actual sheetname in the TransferSpreadsheet command or
perhaps to assign the query definitions to a single query name so that the
results of all three queries are sent to the same page in the spreadsheet
DoCmd.TransferSpreadsheet acExport, 5, "qry_GroupMergePatientUPractitioner",
strHeaderPath & strDocName, -1
Any help would be greatly apprectiated.
Thanks in advance
Anna
I need to send names and addresses to an excel spreadsheet to use as a
header for mail merge labels. The user can choose patients on a form and opt
to create lables only for patients/only for their doctors/or for patients and
their doctors. So I have 3 queries that can be exported to excel. Because
the three queries have different names, their results are ending up on
different pages of the excel sheet corresponding to the query name. Is there
a way to specify the actual sheetname in the TransferSpreadsheet command or
perhaps to assign the query definitions to a single query name so that the
results of all three queries are sent to the same page in the spreadsheet
DoCmd.TransferSpreadsheet acExport, 5, "qry_GroupMergePatientUPractitioner",
strHeaderPath & strDocName, -1
Any help would be greatly apprectiated.
Thanks in advance
Anna