Full Version: Formatting a calculated date in a report
UtterAccess Discussion Forums > Microsoft® Access > Access Date + Time
Adam858
Hi all

I have a text field in a report that contains a letter. In this letter is a date that is caluclated based on a control on the main switchboard.

....letter text" & " " & ([Forms]![Main Switchboard]![QueDays]+[ArrivalDate]) & "letter text.....

I want this to show up as the long date format (eg 10 July 2010) not in the default format (e.g. 13/07/2010 08:11:55).

How do I achieve this guys?

Thanks in advance

Adam
Alan_G
Hi

Try

CODE
....letter text " & Format(([Forms]![Main Switchboard]![QueDays]+[ArrivalDate]),"dd mmm yyyy") & " letter text.....
Adam858
Alan you are a genius yayhandclap.gif

It works, you've saved the day!

Cheers

Adam
Alan_G
Hi Adam

No problem - glad you got it working wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.