E
echofuzz
Hi. I need help with the following IIf statement in a query:
RefresherDue:
(IIf([RefresherRequired]="Yes",(DateAdd([yyyy],[RefresherFreq],[StartDate]))," "))
What I'd like is if [RefresherRequired] is "Yes" then DateAdd
[RefresherFreq] to [StartDate]. If [RefresherRequired] is not "Yes" then I'd
like it to return null. Instead, when I open the query, it asks me for "yyyy"
in addition to the other criteria I set it up to ask for.
Hopefully this makes sense. Also, I'm not a programmer, and I haven't dealt
with databases in a very long time. I made the mistake of telling my boss
that I'd made them before and then was roped into making this one. So please
go easy on me.
Thanks!
RefresherDue:
(IIf([RefresherRequired]="Yes",(DateAdd([yyyy],[RefresherFreq],[StartDate]))," "))
What I'd like is if [RefresherRequired] is "Yes" then DateAdd
[RefresherFreq] to [StartDate]. If [RefresherRequired] is not "Yes" then I'd
like it to return null. Instead, when I open the query, it asks me for "yyyy"
in addition to the other criteria I set it up to ask for.
Hopefully this makes sense. Also, I'm not a programmer, and I haven't dealt
with databases in a very long time. I made the mistake of telling my boss
that I'd made them before and then was roped into making this one. So please
go easy on me.
Thanks!