I don't think I explained clearly enough what I was trying to do. I want to
be able to see orders that that are scheduled for the next 5 weekdays. I also
need to be able to see open orders before today's date (because some have not
been completed and shipped). My current SQL returns orders for the next 5
days (including weekends) but not for just the next 5 weekdays. Thanks!
Douglas J Steele said:
Joseph Meehan said:
PPCO wrote:
I am doing an order schedule and would like to see all orders less
than/equal to today's date + 5 Weekdays. I have it working for
today's date + 5 days but not for 5 weekdays.
My current sql is: <=Date()+5
Thanks
I think this from the help file may help.
Uses the DateAdd function to display a date that is 10 days before the value
of the PromisedDate field.
=DateAdd("y", - [PromisedDate])10
Or, more correctly:
=DateAdd("y", -10, [PromisedDate])