I am trying to insert two columns(conceptname
, storeNumberID
) values from lodgingReport
into temptable
. But there is a syntax error and I can't find the fix
db.Execute "Select [Concept Name],[Store Number ID] into" & TempTable & "from TblLodgingReport"
Full function (inserted from comments):
Function CreateTempTable()
Dim db As Database
Set db = CurrentDb()
db.Execute "Select [Concept Name],[Store Number ID] into" & TempTable & _
"from TblLodgingReport"
MsgBox "table is created"
End Function