smcfadden777
Registered User.
- Local time
- Today, 11:20
- Joined
- May 24, 2012
- Messages
- 10
I have a field that is populated by a yes/no check box.
This field tells whether a Client is active.
I have a report that lists all clients and corrosponding Info.
I have a Radio Button Box called "Active Client Button" with three radio buttons, this box gives the user the option of runing the report for Active, InActive or All Clients:
The buttons have the values:
Active = 1
InActive = 2
All Clients = 3
I am using the following criteria for the check box field:
IIf([Forms]![Contact Details]![Active Client Button]=1,True,IIf([Forms]![Contact Details]![Active Client Button]=2,False,"")
This produces a True if the button box value is 1, A False if the value is 2 and nothing if the button box value is 3.
This works for the Active and Inactive buttons but I cannot find an "else" place holder to put in the "" that allows the checkbox field to give all client records (as it does if no criteria were present). I get nothing or an error message "Expression too long etc."
Does anyone know how best to use the radio button box to get the null value (I've tried Null) in a checkbox field criteria?
Thank you.
This field tells whether a Client is active.
I have a report that lists all clients and corrosponding Info.
I have a Radio Button Box called "Active Client Button" with three radio buttons, this box gives the user the option of runing the report for Active, InActive or All Clients:
The buttons have the values:
Active = 1
InActive = 2
All Clients = 3
I am using the following criteria for the check box field:
IIf([Forms]![Contact Details]![Active Client Button]=1,True,IIf([Forms]![Contact Details]![Active Client Button]=2,False,"")
This produces a True if the button box value is 1, A False if the value is 2 and nothing if the button box value is 3.
This works for the Active and Inactive buttons but I cannot find an "else" place holder to put in the "" that allows the checkbox field to give all client records (as it does if no criteria were present). I get nothing or an error message "Expression too long etc."
Does anyone know how best to use the radio button box to get the null value (I've tried Null) in a checkbox field criteria?
Thank you.