Check Box

Zippyfrog

Registered User.
Local time
Today, 04:33
Joined
Jun 24, 2003
Messages
103
Right now I have a field named "State" in a query that is based off of a yes/no field. When I put this field in a report, I want to see a capital "Y" if the yes/no field is checked, and I want a null value returned if the yes/no field is not checked.

My thought was to add another field to the query then place that field in the report instead of the field called the Yes/No field. I named this new field "ReportField" and tried using an IIF statement. But whenever I run the query, it asks for the paramters of "Y" (the value I want to show up when the yes/no field is checked to true). My syntax is: IIF( [State] = True, "Y", "")

How can I change that to get my desired result? ( the four quotes after the second comma indicate the null value, or at least my attempt at a null value)
 
You don't need another field in your query. Add an unbound textbox to your report, set its control source to = IIF( [State], "Y", "")
 

Users who are viewing this thread

Back
Top Bottom