the problem is in your syntax, you can't refer to a table like that, within
a form. you need to refer to the checkbox within the subform, via the
subform control. try
and btw, as Duane's expression showed, you don't need to include the "=-1"
in the IIf() function's first argument, because a checkbox's value is
already boolean (true or false).
hth
Glenn in Los Angeles said:
That didn't seem to work. It just shows #Name? in the field regardless of
the value in the check box. Here's the language I used
=IIf(
![CheckBox]=-1,"Caption","")
I also tried
=IIf(
![CheckBox]=Yes,"Caption","")
But, in either case, the text box would still be visible all of the time,
and that's what I trying to avoid. Any thoughts?
Duane Hookom said:
You can change the label to a text box and set its control source to
something like:
=IIf([checkbox],"Your Caption","")
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.