Benjamin Bolduc
Registered User.
- Local time
- Today, 15:41
- Joined
- Jan 4, 2002
- Messages
- 169
Hello everyone,
I'm trying to create a criteria in the query of a report that is based off a text box in a form.
It works easily if I just put [Forms]![Prod Sched (BP)]![TheLine#] in the Line# column of my query builder.
My problem occurs when I don't want to specify a number and want to include them all. (1-4)
If I create an IIF statement as follows:
IIf(([Forms]![Prod Sched (BP)]![TheLine#])<>4,[Forms]![Prod Sched (BP)]![TheLine#]), <>5)
It should query all of the numbers, but it just returns no data. I've tried several different methods of expressing "All numbers", but it just wont work unless only one number is specified.
I'm hoping this makes sense and that someone can help me with this. Thanks!
-Ben
I'm trying to create a criteria in the query of a report that is based off a text box in a form.
It works easily if I just put [Forms]![Prod Sched (BP)]![TheLine#] in the Line# column of my query builder.
My problem occurs when I don't want to specify a number and want to include them all. (1-4)
If I create an IIF statement as follows:
IIf(([Forms]![Prod Sched (BP)]![TheLine#])<>4,[Forms]![Prod Sched (BP)]![TheLine#]), <>5)
It should query all of the numbers, but it just returns no data. I've tried several different methods of expressing "All numbers", but it just wont work unless only one number is specified.
I'm hoping this makes sense and that someone can help me with this. Thanks!
-Ben