Hi, I'm trying to update a date field in a table when a user enters a date on a form. However, the date in the table is being updated incorrectly. I enter 05/Jan/04 on the form, and the date in the table shows up as 01/May/04 - the day and month are being switched around.
Here's the code I'm using :
DoCmd.RunSQL "UPDATE tbl_Employee " & _
"SET tbl_Employee.E_Date_Dealer = #" & Me!Date_Moved & _
"# WHERE tbl_Employee.E_Id = " & Me!E_Id & ";"
The date field on the form and the date field in the table are both Long format. Please help - I've been going around in circles with this all afternoon!
Thanks
Jennie.
Here's the code I'm using :
DoCmd.RunSQL "UPDATE tbl_Employee " & _
"SET tbl_Employee.E_Date_Dealer = #" & Me!Date_Moved & _
"# WHERE tbl_Employee.E_Id = " & Me!E_Id & ";"
The date field on the form and the date field in the table are both Long format. Please help - I've been going around in circles with this all afternoon!
Thanks
Jennie.