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

Removing date / delimiters from fields

Status
Not open for further replies.

sqleptical

Programmer
Sep 26, 2001
112
US
I'm using Access 97. I need to create an output that includes a date mmddyy record without the slashes (mm/dd/yy). I've been using Textpad's replace feature on the output, (replacing all "/" with "") - which works, but I know their has to be a better way. Does anyone know a sql statement or date format trick in Access to do this?
 
I tried typing mmddyy (with and w/o brackets) in the format field under a data type of Date/Time since Access does not offer this option in the format combo box. After saving the table and typing in a date in that format, I get an Access error; "The value you entered isn't valid for this field." I also tried unsuccesfully with that date format change using FoxPro 6.





















 
The solution, mmddyyyy, should work in a tabless format section, or in a query. I just tried it in the table's format, without quotes or brackets, and it worked fine. If you do it in a query, just put the syntax in my first response in the Field row of the query grid.
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top