LimitedTech
Technical User
I use the following code to export a Query to Excel 2003
The problem I am having is the exported sheet go to a Canadian company. They format their dates YYYY/MM/DD, Mine are formatted MM/DD/YYYY. I have the format set to YYYY/MM/DD in the QryBillingMailMerge Quesry but when it exports it reverts to MM/DD/YYYY. How can I remedy this?
Thank You
Code:
Dim strQryName As String, strXLFile As String, strName As String
strQryName = "QryBillingMailMerge"
strXLFile = "F:\weeklybilling.xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, strQryName, strXLFile
FollowHyperlink "F:\weeklybilling.xls"
The problem I am having is the exported sheet go to a Canadian company. They format their dates YYYY/MM/DD, Mine are formatted MM/DD/YYYY. I have the format set to YYYY/MM/DD in the QryBillingMailMerge Quesry but when it exports it reverts to MM/DD/YYYY. How can I remedy this?
Thank You