Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

access vba

ResolvedVersion 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 courses

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Access tip:

Create An Inaccessible Field On A Form

There is sometimes a need to make a field in a form look like a normal field but be completely inaccessible to the user. To do this:

In the Field's Properties
Set the ENABLED property to No
Set the LOCKED property to Yes

The field will not grey out, but the user will not be able to do anything with it.

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.23 secs.