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!

get data for previous Monday 1

Status
Not open for further replies.

GROKING

Programmer
Mar 8, 2005
26
US

Hello,
I am looking to use a data function in a access query to get data from the previous Monday, regardless of the current day of the week.

This does not work, it only pulls last thursday.

=IIf(Weekday(Date())=2,Date()-7,Date()-Weekday(Date())-2)

any ideas??
Thanks for the assistance!
 
=IIf(Weekday(Date())=2,Date()-7,Date()-Weekday(Date())[!]+[/!]2)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top