Your code never sets a value for ckbIsAgent variable, so that variable has
the Default value of False -- and all your controls are invisible.
Where is the checkbox located -- on a form that is opening the report?
Assuming yes, add this line of code after the Dim statement:
ckbIsAgent = Forms!FormName!CheckBoxName
(replace FormName and CheckBoxName with the real names of the form and
checkbox control).

Signature
Ken Snell
<MS ACCESS MVP>
> I'd be really grateful if someone could put me right on the following
> code,
[quoted text clipped - 27 lines]
> End If
> End Sub
David Newmarch - 07 Jul 2006 08:16 GMT
Thanks very much Ken. Not only have you fixed my report but I now also see
how Dim declarations are supposed to work. Big leap forward!
> Your code never sets a value for ckbIsAgent variable, so that variable has
> the Default value of False -- and all your controls are invisible.
[quoted text clipped - 38 lines]
> > End If
> > End Sub
Ken Snell (MVP) - 07 Jul 2006 16:51 GMT
You're welcome.
> Thanks very much Ken. Not only have you fixed my report but I now also see
> how Dim declarations are supposed to work. Big leap forward!