T
Thomas
I am writing a query where I want it to check a form for the option selected
in a frame. I want it to choose a single item for the field if one option is
selected (option 2) and select everything except that single item if the
other option is selected (option 2). I am using an IIF Statement to do this
and it will work for Option 2 (show all records with the field as the single
item) but not for option 1 (show all records except where the field is that
single item. My IIf statement is as follows:
IIf(TicketACD()=1,<>"BSC Web Client","BSC Web Client")
I have also tried IIf(TicketACD()=1,Not "BSC Web Client","BSC Web Client")
Now this statement works if option 2 is selected (only choose records where
the field = "BSC Web Client") but it will not work if option 1 is selected
(choose all records where the field does NOT = "BSC Web Client".)
I am running Access 2003 SP3 on a Windows XP SP2 machine. I have tried this
on multiple other systems and it doesn't work on those as well. I have even
tried creating a basic one table 10 records database and tried using in IIF
statement where if one opton is selected it will only select records with the
field being a single value and if the other option is selected showing all
records where the field is NOT = to that value and it doesn't work on that
one as well. In addition if I just set the criteria for the field as Not "BSC
Web Client" or <>"BSC Web Client" it works in both cases.
in a frame. I want it to choose a single item for the field if one option is
selected (option 2) and select everything except that single item if the
other option is selected (option 2). I am using an IIF Statement to do this
and it will work for Option 2 (show all records with the field as the single
item) but not for option 1 (show all records except where the field is that
single item. My IIf statement is as follows:
IIf(TicketACD()=1,<>"BSC Web Client","BSC Web Client")
I have also tried IIf(TicketACD()=1,Not "BSC Web Client","BSC Web Client")
Now this statement works if option 2 is selected (only choose records where
the field = "BSC Web Client") but it will not work if option 1 is selected
(choose all records where the field does NOT = "BSC Web Client".)
I am running Access 2003 SP3 on a Windows XP SP2 machine. I have tried this
on multiple other systems and it doesn't work on those as well. I have even
tried creating a basic one table 10 records database and tried using in IIF
statement where if one opton is selected it will only select records with the
field being a single value and if the other option is selected showing all
records where the field is NOT = to that value and it doesn't work on that
one as well. In addition if I just set the criteria for the field as Not "BSC
Web Client" or <>"BSC Web Client" it works in both cases.