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

Reading sShortDate value from registry

Status
Not open for further replies.

beatZin

Programmer
May 10, 2002
9
0
0
GB
I simply want to get this value into a variable in an access module.

Knowledge is power
Power is Mon£y
 
You can get the code from:


Once you get the code, you could then use the following code:

Dim LCID as Long, DateSep as String

LCID = GetSystemDefaultLCID()
DateSep = GetUserLocaleInfo(LCID, LOCALE_SDATE)

The code from the above web site should be in a standard module all to itself, which then you would use the code that I typed in within the same module that you are needed to use it for.

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
 
Great worked fine but had to change LOCALE_SDATE to LOCALE_SSHORTDATE to get the value i really wanted.

Cheers

Knowledge is power
Power is Mon£y
 
Glad to be of assistance in pointing you to the source that would help.

Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top