Access 2003 VBA Date format changes to American

jimmy2

New Member
Joined
Feb 15, 2011
Messages
14
Hi Guys,

I have a table which i have defined the input mask for a field as "dd/mm/yy" as i am entering data into this field the following happens

29 June 2011 = 29/06/11
30 June 2011 = 30/06/11
***01 July 2011 = 07/01/11****instead of 01/07/11

is there anything i am missing on why it displays 1 July differently. It misleads my calculations.

Would greatly appreciate correction/advise and guidance on this

Thanks in advance
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Entering dates through the interface (eg, data entry), Access will use your regional settings.
Populating or using dates in VBA, Access will revert to US dates *regardless* of your regional settings. There are several possible workarounds for this. I usually convert the date to a number, using CLng (eg, CLng([MyDateField]) ) and that works because the serial number is unambiguous.

Denis
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,510
Members
452,918
Latest member
Davion615

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top