Hi
Access 2007, MDB file, Local Machine
Just when you think you've got your head around this.....
I am in the U.K. so I want dates to be displayed in forms and tables with the local format of dd/mm/yyyy. When I call Now() I do indeed get the correct format returned e.g.
01/04/2012 13:36:43 (April !st 2012)
Because of the laregly unpredictable and potentially horrific results with dates (I would hate to get my tax return wrong!!), I have got into the habit of adding all dates into my tables with # delimiters:-
This (I think) adds the date in the required U.S. format of mm/dd/yyyy .
In my VB modules, I also try to convert any dates submitted by U.K. users into U.S. format and then always # them for table retrievals / calulations / comparisons etc.
Now, I had expected Access/Windows to display dates in my forms and tables with the local U.K. format... it/they don't. I sort of thought that was their job (using locale settings)? I do not have any formatting set on textboxes or table column defs.
What doesn't this happen please?
Access 2007, MDB file, Local Machine
Just when you think you've got your head around this.....
I am in the U.K. so I want dates to be displayed in forms and tables with the local format of dd/mm/yyyy. When I call Now() I do indeed get the correct format returned e.g.
01/04/2012 13:36:43 (April !st 2012)
Because of the laregly unpredictable and potentially horrific results with dates (I would hate to get my tax return wrong!!), I have got into the habit of adding all dates into my tables with # delimiters:-
Code:
Dim Rec_Date As Date
Rec_Date = NOW()
SQL_STR = "UPDATE My_Table SET Date_Rec_Added = # " & Rec_Date & "#"
Execute... blah blah
In my VB modules, I also try to convert any dates submitted by U.K. users into U.S. format and then always # them for table retrievals / calulations / comparisons etc.
Now, I had expected Access/Windows to display dates in my forms and tables with the local U.K. format... it/they don't. I sort of thought that was their job (using locale settings)? I do not have any formatting set on textboxes or table column defs.
What doesn't this happen please?