R
robertfuschetto via AccessMonster.com
I have code to delete the contents of a table. I have code to repopulate it.
This works fine.
I tried adding code to group the table contents and open it and the code
fails with an error.
Dim db As Database
Set db = CurrentDb()
sqlstr = "SELECT tbl_TempList.Name1, tbl_TempList.Table1FROM tbl_TempList
GROUP BY tbl_TempList.Name1, tbl_TempList.Table1;"
DoCmd.RunSQL sqlstr
Error results:
A runSQL action requires an argument consisting of an SQL statement.
Ideas?????
This works fine.
I tried adding code to group the table contents and open it and the code
fails with an error.
Dim db As Database
Set db = CurrentDb()
sqlstr = "SELECT tbl_TempList.Name1, tbl_TempList.Table1FROM tbl_TempList
GROUP BY tbl_TempList.Name1, tbl_TempList.Table1;"
DoCmd.RunSQL sqlstr
Error results:
A runSQL action requires an argument consisting of an SQL statement.
Ideas?????