rikklaney1
Registered User.
- Local time
- Yesterday, 22:34
- Joined
- Nov 20, 2014
- Messages
- 157
Morning ladies and gentlemen. I have a query with 27 fields. they can be "p", "q" or null. I'm trying to create a field that will give me a yes or no based on whether ANY of them are "p". I've tried this
firstdone: IIf([a101] And [a102]="p","no","yes")
which works fine until I hit a null value then it gives the wrong answer. So I tried this
firstdone: IIf([a101] And Nz([a102],"q")="p","no","yes")
But I still get a wrong answer. Anyone have any suggestions on a way to do this? Thanks.
firstdone: IIf([a101] And [a102]="p","no","yes")
which works fine until I hit a null value then it gives the wrong answer. So I tried this
firstdone: IIf([a101] And Nz([a102],"q")="p","no","yes")
But I still get a wrong answer. Anyone have any suggestions on a way to do this? Thanks.