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!

Date format on Report

Status
Not open for further replies.

tamer64

IS-IT--Management
Aug 27, 2007
120
US
Hello everyone,

I have a report which employees use to view previous day statistics information.

At the top of the report I have an unbound textbox which its control source is "=Date()-1". This works great except if the day is a Monday.

Is there a way I can format the unbound text box to say if the date equals Monday subtract 2 days so it would show Fridays date instead of Sunday.

 

hi,
[tt]
=Date()-iif(format(Date(),'ddd')='Mon',3,1)
[/tt]

Skip,
[sub]
[glasses]Just traded in my old subtlety...
for a NUANCE![tongue][/sub]
 
Thank You Skip, I will try that try...Have a great weekend.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top