A
Andrew
Hi,
I am trying to delete a record from a table. The filed is in the format
"dd/mm/yy hh:mm"
My SQL statement is: DoCmd.RunSQL "DELETE * FROM Tbl_Times_Available WHERE
[Food Time] = " & Selected_Food_Time & ";"
When I run the code I get an error message:
'Run-time error '3075'
Syntax error (missing operand) is query expression '[Food Time] = 16/02/2006
1:00:00 PM'
I suspect it wil be due to the space between the year and the hour. The
'Food Time' field in the table is defined as General Date.
I am trying to delete a record from a table. The filed is in the format
"dd/mm/yy hh:mm"
My SQL statement is: DoCmd.RunSQL "DELETE * FROM Tbl_Times_Available WHERE
[Food Time] = " & Selected_Food_Time & ";"
When I run the code I get an error message:
'Run-time error '3075'
Syntax error (missing operand) is query expression '[Food Time] = 16/02/2006
1:00:00 PM'
I suspect it wil be due to the space between the year and the hour. The
'Food Time' field in the table is defined as General Date.