Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format Date on Form 1

Status
Not open for further replies.

wonderwhy

Technical User
Dec 30, 2002
99
US
I want to display a date from a subform on my form and format it like: Thursday, May 12, 2005

I currently have it displaying on a text box (like a caption for a subform) using:

=[qryFrmSubSleepEpisode]!EpisodeDate

but I can't seem to get the syntax right to format it like I want to (above).

Help would be appreciated,

Julia
 
Have you tried this ?
=Format([qryFrmSubSleepEpisode]!EpisodeDate, "dddd, mmmm dd, yyyy")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
No, but it works perfectly! I was trying to put the 'Format' before the field name in the expression. I didn't know to put it at the beginning.

Thank you very much!

Julia
 
Try this:

=FormatDateTime([qryFrmSubSleepEpisode]![EpisodeDate],1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top