Lobster1071
Registered User.
- Local time
- Today, 15:25
- Joined
- May 18, 2008
- Messages
- 23
If someone would be so kind, I would like to find out why this bit of code doesn't work. I'm probably just missing something simple. I've done some poking around, and can't find an answer to what I'm trying to accomplish.
I simply have a field called Position, and would like to grab records in a query based on the first 3 characters in that field. The characters are "Rdr". If a selection of a particular radio button on a form is selected, all records meeting that requirement is displayed. Otherwise all other records NOT meeting that requirement are displayed.
Here is my criteria for the Position field:
IIf([Forms]![MasterForm]![FrameSchedule]=1,Not Like "Rdr*",Like "Rdr*")
Why exactly doesn't this work? Putting in the individual statements in the criteria (without the IIf statement) works fine.
I simply have a field called Position, and would like to grab records in a query based on the first 3 characters in that field. The characters are "Rdr". If a selection of a particular radio button on a form is selected, all records meeting that requirement is displayed. Otherwise all other records NOT meeting that requirement are displayed.
Here is my criteria for the Position field:
IIf([Forms]![MasterForm]![FrameSchedule]=1,Not Like "Rdr*",Like "Rdr*")
Why exactly doesn't this work? Putting in the individual statements in the criteria (without the IIf statement) works fine.