A
accesshacker
I am trying to output a query as an excel file and save it to a specific
location. Here is my code.
DoCmd.OutputTo acOutputQuery, "Qry:SKU_ALL_2", acFormatXLS, _
"C:\RH DOC\LCM_PROJECT\LCM_QRY" & "\" & "LCM_QRY" & "_" & "PERIOD" & "_" &
([Forms]![LCM_DATA]![PER]) & ".xls", False
I get a run time error '2306' that states there too many rows to output,
based on the limitation specified by the output format or by Microsoft
Access. There are 36,464 records. When I take acFormatXLS and the file path
and have Access prompt me for the output, I am able to create the file in the
folder specified.
Not sure what I am doing wrong. Any help will be greatly appreciated!
location. Here is my code.
DoCmd.OutputTo acOutputQuery, "Qry:SKU_ALL_2", acFormatXLS, _
"C:\RH DOC\LCM_PROJECT\LCM_QRY" & "\" & "LCM_QRY" & "_" & "PERIOD" & "_" &
([Forms]![LCM_DATA]![PER]) & ".xls", False
I get a run time error '2306' that states there too many rows to output,
based on the limitation specified by the output format or by Microsoft
Access. There are 36,464 records. When I take acFormatXLS and the file path
and have Access prompt me for the output, I am able to create the file in the
folder specified.
Not sure what I am doing wrong. Any help will be greatly appreciated!