I have a database where dates is pesented by a 8 position text string i.e. 20020726. What kind (if any) of conversion function in Access can I use to convert this to a date i.e from 20020726 (8 position date format) to 2002.07.26 ?
Regards
I would create a new field in your table called NewDate. Then I would create an Update Query and place this new field in the Field grid and Update it to:
Left([your field name],4) & "." & Mid([your field name],5,2) & "." & Right([your field name],2)
I don't like updating my fields and this is the reason I would create a new column to update.
i like the idea of a seperate field... but i would suggest looking into the format command in vba... it might be an easier way of doing what you are looking at...
--James
junior1544@jmjpc.net
Life is change. To deny change is to deny life.
If you wanted to use this in a report, you could create a text box and place the formula in it. When you ran the report, the date would show up like 2002.07.26
I have an app where it was much more effieict for storing data and sorting to use a date format of text strings like 200206. This is because all data entered in one month was the same, so adding it all up later is much easier. But the users did not want to see that date like that....they wanted to see January 2002. So I created a combo box and used the following to make change:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.