By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,316 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

Simple Date Calculation

P: 1
I have a simple query but cannot seem to get the syntax correct.

I want analyse orders of more than two days passed their due date but do not want to include weekends. So if today is Monday it would be date - 3, else date -2.

How do I show that in a query grid?
Sep 29 '06 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 1,418
In your query grid you enter as check date

Check date:[Yourdate]-IIF(Datepart("d",[Yourdate],vbmonday)=1,3,2)

Sep 30 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.