converting strings to dates in MS Access

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to convert a string such as 071505 in a query in Access to a
date. I used all of the date built in functions in Access 2003 but none seem
to give me 7/15/05 or anything accurate. Any ideas?
 
You need to parse it first.
CDate(Left([YourTextField],2) & "/" & Right(Left([YourTextField],4),2) & "/"
& Right([YourTextField],2))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top