I'm getting a Run-time error '3011'
The Microsoft Office Access database engine could not find the object 'strMatrix'. Make sure the object exists and that you spell its name and the path name correctly.
Can someone tell me what I'm missing?
The Microsoft Office Access database engine could not find the object 'strMatrix'. Make sure the object exists and that you spell its name and the path name correctly.
Can someone tell me what I'm missing?
Code:
Dim strMatrix as String
strMatrix = "SELECT ..."
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "strMatrix", c:\Matrix.xls", True