When I run the following sub, a message pops up saying,
"A runSQL action requires an argument consisting of a SQL statement"
Sub test()
Dim sSQL As String
sSQL = "SELECT PRCR_ID FROM [Access PCPs Counts Only]"
DoCmd.RunSQL sSQL
End Sub
Can anyone tell me what, if anything, I'm doing wrong?
Thanks...Franco
"A runSQL action requires an argument consisting of a SQL statement"
Sub test()
Dim sSQL As String
sSQL = "SELECT PRCR_ID FROM [Access PCPs Counts Only]"
DoCmd.RunSQL sSQL
End Sub
Can anyone tell me what, if anything, I'm doing wrong?
Thanks...Franco