Weekend Date

C

caloy

If I have a set of Dates in format mm/dd/yy, what function or expression do I
use to find the weekend date? Sunday - Saturday

Ex. 6/1/08, 6/2/08, 6/3/08,...6/7/08 (not knowing that 6/7/08 is a Saturday)
 
J

jschmuck9

assuming you have table with a field eventdate

create query showing [eventdate] and create an expression [exp1:
weekday(
![eventdate])

this expression will return 1=sunday, 2=monday, etc.

in the criteria field for the expression (where in sql) you could say <>1
and <>7 (excludes sun and sat).

hope that helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top