Hi everyone,
I have a problem with date formats:
I have a date-field in a table with a short-date format (according to our regional settings (belgium) it is dd/mm/yyyy).
I use vba to insert data in the table, for the date-field i use the following code:
#" & Format(Date, "dd/mm/yyyy") & "#
what happens:
if the day-part is 12 or smaller he switches month and day, even thought the format is specified.
if the day-part is 12 or greater, there are no problems.
ex:
12/03/2005 (12 March) becomes 03/12/2005 (12 December) after insert.
13/03/2005 (13 March) stays 13/03/2005 (13 March)
I use like 10 different access databases (office xp) some have this problem, some don't. (it's NOT a date-setting problem in windows)
I have a problem with date formats:
I have a date-field in a table with a short-date format (according to our regional settings (belgium) it is dd/mm/yyyy).
I use vba to insert data in the table, for the date-field i use the following code:
#" & Format(Date, "dd/mm/yyyy") & "#
what happens:
if the day-part is 12 or smaller he switches month and day, even thought the format is specified.
if the day-part is 12 or greater, there are no problems.
ex:
12/03/2005 (12 March) becomes 03/12/2005 (12 December) after insert.
13/03/2005 (13 March) stays 13/03/2005 (13 March)
I use like 10 different access databases (office xp) some have this problem, some don't. (it's NOT a date-setting problem in windows)