T
tiger0268 via AccessMonster.com
I am working on a query to pull up all records that meet certain conditions
and is at least three months old. I figured that part out; however, I want
to add a condition for a user input that would cutoff the records for a
certain number of months. Everything works well until I enter a null value
in the user input.
The Where condition I got so far is:
<DateSerial(Year(Date()),Month(Date())-3,1) And >DateSerial(Year(Date()),
Month(Date())-([CutOff Number]+3),0)
If I enter a null value into the user input, I would like for it to pull up
all records that are at least three months old ( <DateSerial(Year(Date()),
Month(Date())-3,1) ).
and is at least three months old. I figured that part out; however, I want
to add a condition for a user input that would cutoff the records for a
certain number of months. Everything works well until I enter a null value
in the user input.
The Where condition I got so far is:
<DateSerial(Year(Date()),Month(Date())-3,1) And >DateSerial(Year(Date()),
Month(Date())-([CutOff Number]+3),0)
If I enter a null value into the user input, I would like for it to pull up
all records that are at least three months old ( <DateSerial(Year(Date()),
Month(Date())-3,1) ).