J
John Budding
I have a form with a date control (Checkdate), which I need to pass to the
WHERE part of a SELECT SQL
at present I have VBA Code . . .
SQLS = "SELECT [T: Stewards ROTA].Rotadate, [T: Stewards ROTA].Vol1, [T:
Stewards ROTA].Vol2, [T: Stewards ROTA].Vol3 " & vbCrLf & _
"FROM [T: Stewards ROTA] " & vbCrLf & _
"WHERE ((([T: Stewards ROTA].Rotadate)=[Forms]![F: Refreshment
ROTA]![Checkdate]));"
DoCmd.RunSQL SQLS
and get the following
"Run-Time error '2342'
A RunSQL action requires an argument consisting of a SQL statement."
I feel I am not correctly passing the Checkdate, but can't see how
Help Please!
WHERE part of a SELECT SQL
at present I have VBA Code . . .
SQLS = "SELECT [T: Stewards ROTA].Rotadate, [T: Stewards ROTA].Vol1, [T:
Stewards ROTA].Vol2, [T: Stewards ROTA].Vol3 " & vbCrLf & _
"FROM [T: Stewards ROTA] " & vbCrLf & _
"WHERE ((([T: Stewards ROTA].Rotadate)=[Forms]![F: Refreshment
ROTA]![Checkdate]));"
DoCmd.RunSQL SQLS
and get the following
"Run-Time error '2342'
A RunSQL action requires an argument consisting of a SQL statement."
I feel I am not correctly passing the Checkdate, but can't see how
Help Please!