TechnicalAnalysis
Programmer
I have a query like this:
INSERT INTO Table2 ( fields1, field2,.... ) SELECT Table1.fields1, Table1.fields2,.... FROM Table2 WHERE [Table2]![Fields3]>=#1/6/2002# And [Table2]![Fields3]<=#30/6/2002#
[Table2]![Fields3] is a Date field with Short Date format
Both Dates in the WHERE portion above are generated by the DateSerial function of Access.
For example "........ FROM Table2 WHERE [Table2]![Fields3]>=#'" & DateSerial(2002,6,1) & "# AND [Table2]![Fields3]<=#" & DateSerial(2002,6,1) &"#"
It works fine if the date format of my PC is m/d/yyyy
It doesn't pull the right records if the PC date format is d/m/yyyy
Is it possible to make it works on PC with different date format set up. m/d/yyyy and d/m/yyyy
Thanks
INSERT INTO Table2 ( fields1, field2,.... ) SELECT Table1.fields1, Table1.fields2,.... FROM Table2 WHERE [Table2]![Fields3]>=#1/6/2002# And [Table2]![Fields3]<=#30/6/2002#
[Table2]![Fields3] is a Date field with Short Date format
Both Dates in the WHERE portion above are generated by the DateSerial function of Access.
For example "........ FROM Table2 WHERE [Table2]![Fields3]>=#'" & DateSerial(2002,6,1) & "# AND [Table2]![Fields3]<=#" & DateSerial(2002,6,1) &"#"
It works fine if the date format of my PC is m/d/yyyy
It doesn't pull the right records if the PC date format is d/m/yyyy
Is it possible to make it works on PC with different date format set up. m/d/yyyy and d/m/yyyy
Thanks