rabravenec1
New Member
- Joined
- Feb 11, 2019
- Messages
- 2
I am using VBA to export an Access Report which uses dlookups in the heading to set a value to an actually month name.
This dlookup values work good when using the following.
DoCmd.OutputTo acOutputReport, "rpt_DivisionDoc_LTM_Coll", acFormatPDF, strFileName, False
However, when I attempt to take the same report and export it to access using
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "qry_DivisionDoc_Test_FY_Coll_LTM", strFileName3, False
The dlookup values do not transfer to the spreadsheet.
I've tried different methods to export this report and have it transfer the heading values retrieved by the dlookups in the reports and find
that it does work fine with the
DoCmd.OutputTo acOutputReport, "Rpt_DivisionDoc_LTM_Coll", acFormatTXT, strFileName4, False string.
But, I need the report in Excel with the actual dlookup values.
Please help... users driving me crazy...
This dlookup values work good when using the following.
DoCmd.OutputTo acOutputReport, "rpt_DivisionDoc_LTM_Coll", acFormatPDF, strFileName, False
However, when I attempt to take the same report and export it to access using
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "qry_DivisionDoc_Test_FY_Coll_LTM", strFileName3, False
The dlookup values do not transfer to the spreadsheet.
I've tried different methods to export this report and have it transfer the heading values retrieved by the dlookups in the reports and find
that it does work fine with the
DoCmd.OutputTo acOutputReport, "Rpt_DivisionDoc_LTM_Coll", acFormatTXT, strFileName4, False string.
But, I need the report in Excel with the actual dlookup values.
Please help... users driving me crazy...