Date restrictor for this week

G

Guest

Hi,

I want to create a report that will always give sales for the current week
starting with monday and going to friday. We are closed on Saturday and
Sunday but if a sales manager runs a report on friday or saturday, it would
give him sales for this week.

Thanks,
 
J

John Vinson

Hi,

I want to create a report that will always give sales for the current week
starting with monday and going to friday. We are closed on Saturday and
Sunday but if a sales manager runs a report on friday or saturday, it would
give him sales for this week.

Thanks,

You can use Access' builtin date functions to do this. A criterion of
= DateAdd("d", -DatePart("w", Date()), Date()) AND < DateAdd("d", 8-DatePart("w", Date()), Date())

will get from the previous Sunday through next Sunday.

John W. Vinson[MVP]
 

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