Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

God Dam Americans only kidding !American Date problem

Status
Not open for further replies.

Chance1234

IS-IT--Management
Jul 25, 2001
7,871
0
0
US
For as long as time can remember i have had an Access 97 Db with a module in it, part of the code in the module is the following

strSql = "SELECT * FROM TBLHISTORY WHERE dateofchange =#" & Date & "#"
Set MyreC = Mydb.OpenRecordset(strSql)

never ever had any problems with it until now , for some strange reason im getting the date in american format,

nothigns changed and my regional settings are english so why has this suddenly happend ?

can anyone help ?


Chance

 
yes your regional settings is english ... but whos english, remember that america also speaks english.
you can specify the date format you want by clicking the date tab in the regional settings diaog box or changing your locale to english(Jamaica). this works if you are running Windows 2000 i think it work in earlier versions too.

CAM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top