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

day dependent query

Status
Not open for further replies.

emitecaps

Technical User
Apr 20, 2005
24
GB
Hi,

i want to find all records in my database for a particular issue date.
the issue dates are weekly, every saturday format dd/mm/yy
i want to run this query to show all bookings in the table 'Use' appearing for this weekend.
Eg. if today is 19 may it would find all bookings for 21 may.
the query could be run anytime between monday and friday
i'm trying this but it isn't working....any suggestions?
i think it's the bit after weekday that's causing the problems...but i'm not sure!

SELECT Use.*, Use.[Issue Date]
FROM Use
WHERE ((Use.[Issue Date])=Weekday(Date())+2);

 
WHERE Use.[Issue Date] = (Date - Weekday(Date) + 7);

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