sal88 Posted March 20, 2016 Posted March 20, 2016 Hi all At my wit's end with this one. I've got an INSERT VALUES SQL command, but it will not insert a date value: SMExecuteSQL ( "INSERT INTO Log (Log_Personnel_IDF,Log_Date) VALUES (" & $$Personnel_ID & ",'20/03/2016')") It is absolutely fine with all other value types, just not the date one. I get an 8309 error. I have tried different date formats, and get (currentdate) - which is what I really need to populate the new record.
sal88 Posted March 21, 2016 Author Posted March 21, 2016 I've resolved this by using 'SELECT' instead of 'VALUES', and specifying the source date value within a proper field. Using Values would be a bit neater but not a big deal.
Recommended Posts
This topic is 3238 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now