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!

Convert text "yyyymmdd" to date/time data type? 1

Status
Not open for further replies.

wvmbark

Technical User
Feb 12, 2003
135
US
What is the expression I'd use in an update query to convert a text field that contains "yyyymmdd" to a date/time data type?
 
Try:
DateSerial(Left([TextField],4), Mid([TextField],5,2), Right([TextField],2))

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top