98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Access VBA Training and help » Access VBA
Access VBA
Resolved · Low Priority · Version Standard
Mohammed has attended:
Access Intermediate course
Access Advanced course
Access VBA course
Access VBA
how can you concatenate a date field from yyyymmdd to read dd/mm/yyyy in access?
RE: Access VBA
Hi Mohammed,
A few things you can try...
1) You could try the Format function:
Format ( expression, [ format, [ firstdayofweek, [firstweekofyear] ] ] )
eg. Format ( yyyymmdd, "dd/mm/yyyy")
See more: http://www.techonthenet.com/access/functions/date/format.php
2) If it's an import, you can adjust it in Excel first, like this:
If A1 equals the yyyymmdd value, enter this in B1:
=RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4)
... to get the proper format.
Hope this helps.
Regards, Rich
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Access tip:Calculating The Difference Between DatesIf you wish to calculate the time between two date fields, this can be done in a number of ways: |