OK - and what is then "the normal date/time format"?
It should be a format that is not affecetd by th eregional
settings.
Access will make *reasonable* interpretations of anything that looks
like a puncutated date. For instance, if the user types
15 Dec 2004 11:01:20am
the result will be stored correctly.
The one "gotcha" is that ambiguous day-month entries such as 3/8/2004
(is this March 8, American style, or 3 August, European style?) will
depend on the regional settings. If you want complete control over
this, you can use six numeric textboxes txtYear, txtMonth, txtDay,
txtHour, txtMinute, and txtSecond and use
DateSerial(txtYear, txtMonth, txtDay) + TimeSerial(txtHour, txtMinute,
txtSecond)
to calculate the date/time value unambiguously (assuming that the user
puts the right number in the right textbox!)
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps