I'm trying to run the following SQL (PropertyID is Double, TimeStamp is Date/Time) but the TimeStamp part is causing a syntax error (Runtime error 3134) - am I missing something?
I've also tried with quotes:
Ideally, I would like to have somthing like Now() or dteDateVar in place of the static time in the end - I was just testing with the static date but failed at the first hurdle!
Thanks very much
Edit: Also, adding a semicolon at the end doesn't help
Code:
DoCmd.RunSQL "INSERT INTO tblProperties (PropertyID, TimeStamp) VALUES (1, #07/08/2010 06:37:43#)"
Code:
DoCmd.RunSQL "INSERT INTO tblProperties (PropertyID, TimeStamp) VALUES (1, #'07/08/2010 06:37:43'#)"
Thanks very much
Edit: Also, adding a semicolon at the end doesn't help
Last edited: