I'm new to Ms Access (I'm a unix DBA for 20+ years) and have been developing a small app for a friend. Now i know that in Access you must use the US date format in queries, but I came accross this when my app was causing me grief ;
Table : timesheet
Columns : tsName,tsCode,tsDate,tsHours
query1 : UPDATE timesheet SET tsCode = "P" , tsHours = 6 WHERE tsDate = #25/10/2010#
result : 2 records (25th Oct. 2010) updated
This is what i expected , now the 2nd query ,
query2 : UPDATE timesheet SET tsCode = "P" , tsHours = 6 WHERE tsDate = #10/25/2010#
result : 2 records (25th Oct. 2010) updated
how can both queries translate the date to the 25th Oct. 2010 ?
Surely one of them is invalid ?
Table : timesheet
Columns : tsName,tsCode,tsDate,tsHours
query1 : UPDATE timesheet SET tsCode = "P" , tsHours = 6 WHERE tsDate = #25/10/2010#
result : 2 records (25th Oct. 2010) updated
This is what i expected , now the 2nd query ,
query2 : UPDATE timesheet SET tsCode = "P" , tsHours = 6 WHERE tsDate = #10/25/2010#
result : 2 records (25th Oct. 2010) updated
how can both queries translate the date to the 25th Oct. 2010 ?
Surely one of them is invalid ?