G
Guest
This is the SQL from my Query. The option group is on a form to select active
or inactive staff. Staff status may be "Staff","Emergency",or"Inactive".
SELECT [Staff Name].FirstName, [Staff Name].LastName, [Staff Name].Status
FROM [Staff Name]
WHERE ((([Staff
Name].Status)=IIf([Forms]![Staff]![optiongroup]=2,"Inactive",Not ([Staff
Name].Status)="Inactive")));
It works when [optiongroup]=2 but not otherwise. How do I fix the falsepart?
or inactive staff. Staff status may be "Staff","Emergency",or"Inactive".
SELECT [Staff Name].FirstName, [Staff Name].LastName, [Staff Name].Status
FROM [Staff Name]
WHERE ((([Staff
Name].Status)=IIf([Forms]![Staff]![optiongroup]=2,"Inactive",Not ([Staff
Name].Status)="Inactive")));
It works when [optiongroup]=2 but not otherwise. How do I fix the falsepart?