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!

Long date

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG

I have the following control in my report:
="Payment :" & "" & [required date]
I have placed the format to long date but nevertheless i get the result with a short date. How can i format it to long date?
 
Based on what you've shown, the control on the report is not returning a date, it is returning a string, and the date is a part of that string. So you need to format the date before putting it in the string. How about:

="Payment :" & "" & CStr(Format([required date],"mmmm d, yyyy"))
 


Hi,

The Format function returns a STRING, so ther's no need to use the CStr function...
Code:
"Payment :" & "" & Format([required date],"mmmm d, yyyy")
[/codw]


Skip,
[sub]
[glasses]Just traded in my old subtlety...
[b]for a NUANCE![/b][tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top