Link to home
Start Free TrialLog in
Avatar of rsb1222
rsb1222

asked on

Syntax for Access Query using Dates

What is the correct syntax for the following:
 
I am trying to write a query which evaluates whether today's date is between two dates - - if so, then perform a calculation, else Null.  I'm having trouble with the date syntax.

This is what I have tried:


Expr:  IIf(Date() > #[BeginningDate]# and < #[EndingDate]# , [PerformCalculation] ,Null)


Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Ess Kay
Ess Kay
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial