weekday function in WHERE

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to get working days without Sundays from a table for the period from
Feb1/04 till May26/05. I'm trying to use the Weekday function.

Using the following query I can get all Sundays.

SELECT tblProduction.Day, tblProduction.[Scheduled Hrs] FROM tblProduction
WHERE (((Weekday([Day]))=1));

But, when I'm trying to get days without Sundays using Weekday([Day])>1 or <>1
I cannot get full February but only from Feb 25th. The rest of months looks
fine.

Could anybody clarify how could I fix it?

Thanks
 

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

Back
Top