March 20, 20169 yr 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.
March 21, 20169 yr Author 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.
Create an account or sign in to comment