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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Date Format Issues US vs UK 1

Status
Not open for further replies.

mordja

Programmer
Apr 27, 2004
294
GB

Hi,

Im having some date issues. I have a database which several users use. Some have there regional date settings set to English, others to US. I get errors because on several forms I programmatically build filters and modify querydefs depending on the date. Is there a way in VBA that I could do something like

if dateSettings = US then
else

Thanks

Mordja
 

Thanks,

I always use the UK format. I got around the problem by using the dd-mmm-yy format when building my date strings.

Thanks

Mordja
 
Thanks for the link ROY-VADAR.
You have just saved me hours of programming time with the information provided on that site.
Once again thanks.


Program Error
Why is it, I still think in terms of spectrum BASIC!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top