dkingston said:
Is there a way to get access to recognize dates in
YYYYMMDD format? If so, can I then make the dates output
in MM/DD/yy fomat on reports.
In MS Access, as with all Microsoft Office products, dates are stored in a
modified Double (float) datatype. This allows math to be performed on them.
What you see is controlled by several factors:
1. The OS language.
2. The OS defaults. These are set in the Control Panel, under Regional
settings.
3. SQL program defaults. (SQL requires mm/dd/yy or mm/dd/yyyy format)
4. The date format.
You can format the date to view it or input it any way by using the Format
and InputMask properties of either a textbox or the field in the table. Just
keep in mind that under the covers you are entering a number, the integer
portion of which is the Date and the decimal portion is the Time. Some very
helpful Date/Time functions are available at the Access Web:
http://www.mvps.org/access/datetime/index.html
There are also a few on my website (listed below). Spend a little time at
these 2 sites and you should find everything you need.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access