C
Chris L
Hi
I get an error message saying the jet engine can't find
the input table or query strSQL after running the code
below:
'********
'DEFINE VARS
'*******
Dim db As Database
Dim rs As Recordset
Dim strSQL As String
Set db=CurrentDb()
'**********
'1. string to hold SQL statement (build query)
'**********
strSQL = "SELECT * FROM tblREV04"
'**********
'2. EXECUTE ABOVE STATEMENT
'*********
Set rs = db.OpenRecordset ("strSQL")
BLAH BLAH BLAH
If I remove the quotes around strSQL I get an error
message of data type mismatch...
What did I forget?
Thanks
CL
I get an error message saying the jet engine can't find
the input table or query strSQL after running the code
below:
'********
'DEFINE VARS
'*******
Dim db As Database
Dim rs As Recordset
Dim strSQL As String
Set db=CurrentDb()
'**********
'1. string to hold SQL statement (build query)
'**********
strSQL = "SELECT * FROM tblREV04"
'**********
'2. EXECUTE ABOVE STATEMENT
'*********
Set rs = db.OpenRecordset ("strSQL")
BLAH BLAH BLAH
If I remove the quotes around strSQL I get an error
message of data type mismatch...
What did I forget?
Thanks
CL