To format date on the report (1 Viewer)

hfsitumo2001

Member
Local time
Yesterday, 18:22
Joined
Jan 17, 2021
Messages
365
Hello, I want to change the format of the text column in my report. The content of the text is this:
=[Forms]![frmReportselection_ReceiptbyItem]![txtstDate] & " to " & [Forms]![frmReportselection_ReceiptbyItem]![txtEndate]

but It can not work, it always show this format mm/dd/yyyy, I want it to format May, 23, 2022.

Anyone can help me?

Thank you,

Frank
 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 21:22
Joined
May 21, 2018
Messages
8,529
Try
Code:
 ... & format([Forms]![frmReportselection_ReceiptbyItem]![txtEndate],"MMM, DD, YYYY")
 

hfsitumo2001

Member
Local time
Yesterday, 18:22
Joined
Jan 17, 2021
Messages
365
Try
Code:
 ... & format([Forms]![frmReportselection_ReceiptbyItem]![txtEndate],"MMM, DD, YYYY")
Thank you, I will try it

Frank
 

MajP

You've got your good things, and you've got mine.
Local time
Yesterday, 21:22
Joined
May 21, 2018
Messages
8,529
If the first "&" is actually there then remove it.
Code:
= Format([Forms]![frmReportselection_ReceiptbyItem]![txtstDate],"MMM, DD, YYYY") & " to " & Format ([Forms]![frmReportselection_ReceiptbyItem]![txtEndate],"MMM, DD, YYYY")

Is this in a calculated control?
 

hfsitumo2001

Member
Local time
Yesterday, 18:22
Joined
Jan 17, 2021
Messages
365
Thank you MajP, this one works. I missed something on the first try
= (Format([Forms]![frmReportselection_ReceiptbyItem]![txtstDate],"MMM, DD, YYYY") & " to " & Format ([Forms]![frmReportselection_ReceiptbyItem]![txtEndate],"MMM, DD, YYYY"))
 

Users who are viewing this thread

Top Bottom