I
iccsi
strMYSQL = "INSERT INTO tblTmpMonthChart " & _
" SELECT [SP GET CSR CURRENT CHART].* " & _
" FROM [SP GET CSR CURRENT CHART];"
Debug.Print strMYSQL
CurrentDb.Execute strMYSQL, dbFailOnError
I have above VBA code to excute an INSERT query.
The SQL works and copy from debug Windows works too.
I got too few parameteres. expected 0 while I run in the VBA code.
Any suggestions for this issue?
Your help is great appreciated,
" SELECT [SP GET CSR CURRENT CHART].* " & _
" FROM [SP GET CSR CURRENT CHART];"
Debug.Print strMYSQL
CurrentDb.Execute strMYSQL, dbFailOnError
I have above VBA code to excute an INSERT query.
The SQL works and copy from debug Windows works too.
I got too few parameteres. expected 0 while I run in the VBA code.
Any suggestions for this issue?
Your help is great appreciated,