A
Ayo
"The Object Type argument for the action ormethod is blank or invalid"
I get the above error when I tried to execute this code:
Private Sub cmdImportFiles_Click()
Dim testQry As String, fileLocation As String, Query1 As String
fileLocation = "E:\Database Work In-Progress\War Room Templates\DAILY
WAR ROOM LOG.xls"
'Qry = "SELECT * FROM tblConstructionLog WHERE [DATE]=#9/4/2007# ORDER
BY NAME"
DoCmd.OutputTo acOutputQuery, Query1, acFormatXLS, fileLocation, True
End Sub
I don't know what it is I did wrong, or am doing wrong. Please help.
Thank you.
I get the above error when I tried to execute this code:
Private Sub cmdImportFiles_Click()
Dim testQry As String, fileLocation As String, Query1 As String
fileLocation = "E:\Database Work In-Progress\War Room Templates\DAILY
WAR ROOM LOG.xls"
'Qry = "SELECT * FROM tblConstructionLog WHERE [DATE]=#9/4/2007# ORDER
BY NAME"
DoCmd.OutputTo acOutputQuery, Query1, acFormatXLS, fileLocation, True
End Sub
I don't know what it is I did wrong, or am doing wrong. Please help.
Thank you.