General discussion
October 14, 2001 at 07:17 PM
michael.miranda

USE SQL INSERT to insert dates

by michael.miranda . Updated 24 years, 7 months ago

Can someone please tell me how to insert dates in MS Access?
when i insert dates i get an error
i use this statement
strSQ = insert into Expense (date,particulars,amount) values (‘” & strDate & “‘,'” & strParticulars & “‘, ‘” & strAmount & “‘)
db.execute strSQL

if i take off date, i am able to insert a record in another table, what could be the problem with inserting dates, i have tried using the #, but that does not work either..

Please help

This discussion is locked

All Comments