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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Odd Filter request - filter by month exclude certain days 2

Status
Not open for further replies.

gogopoppy

Instructor
Mar 6, 2005
114
CA
Hi there,

I've had a request to filter a report by the last month's data but to exclude Mondays!

I've tried quite a few things but my formula is not quite working.

Could anyone give me a heads up about how to approach this. Its harder than I thought when I said it was possible.

Any help or direction would be great

Tx in advance

G
 
Assuming Mondays are the first day of the week, something like this should work:

{yourtable.datefield} in {?StartDate} to {?StopDate}
and DayOfWeek ({casemain.actcase_start_datetime}) <> 1
 
Or this

{yourtable.datefield} in LastFullMonth and
DayOfWeek({casemain.actcase_start_datetime}) <> 1
 
Sorry about that but Monday is 2 not 1

{yourtable.datefield} in LastFullMonth and
DayOfWeek({casemain.actcase_start_datetime}) <> 2
 
Thanks everyone

These are working (I thought it would be a much harder formula)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top