Hello,
I have tried to add an and statement to an existing query that works and I keep on getting this error. I have tried different approaches and nothing seems to work. Everthing looks apaced correctly. Any help is appreciated.
Tom
My debug statement reads like
INSERT INTO PROC_RptSrc_ExecSumm SELECT dbo_RptSrc_ExecSumm.* FROM dbo_RptSrc_ExecSumm WHERE qrptid = 2935 AND runrpt = 1;
I have tried to add an and statement to an existing query that works and I keep on getting this error. I have tried different approaches and nothing seems to work. Everthing looks apaced correctly. Any help is appreciated.
Tom
My debug statement reads like
INSERT INTO PROC_RptSrc_ExecSumm SELECT dbo_RptSrc_ExecSumm.* FROM dbo_RptSrc_ExecSumm WHERE qrptid = 2935 AND runrpt = 1;
Code:
strSQL = "INSERT INTO PROC_" & (strSrcTable) & " " & _
"SELECT dbo_" & (strSrcTable) & ".* " & _
"FROM dbo_" & (strSrcTable) & " " & _
"WHERE qrptid = " & (liQID) & " AND runrpt = 1" & ";"
Debug.Print strSQL
CurrentDb.Execute strSQL