Hi all,
I've scoured the internet for answers to this as I thought it would be quite simple to sort out.
I have the following VBA code:
I thought I had covered the fact that there are more than 65535 rows of data in the "SalesandOrders" table by specifying the Output to Excel 2007. However, when I open the "SalesandOrders.xlsx" file, it only goes up to 65535 rows, as if it were Excel 2003.
I really can't work out why it's doing it, so any help would be much appreciated!
Regards,
Nick
I've scoured the internet for answers to this as I thought it would be quite simple to sort out.
I have the following VBA code:
Code:
Private Sub RunSalesandOrdersbutton_Click()
DoCmd.SetWarnings False
DoCmd.OpenQuery "Step 1", acViewNormal, acEdit
DoCmd.Close acQuery, "Step 1"
DoCmd.OpenQuery "Step 2", acViewNormal, acEdit
DoCmd.OutputTo acOutputTable, "SalesandOrders", "Microsoft Excel Workbook (*.xlsx)", "R:\Access\Reports\Operations\SalesandOrders.xlsx", False, "", 0, acExportQualityPrint
DoCmd.Quit acSave
DoCmd.SetWarnings True
End Sub
I thought I had covered the fact that there are more than 65535 rows of data in the "SalesandOrders" table by specifying the Output to Excel 2007. However, when I open the "SalesandOrders.xlsx" file, it only goes up to 65535 rows, as if it were Excel 2003.
I really can't work out why it's doing it, so any help would be much appreciated!
Regards,
Nick