conditional checkbox?

A

Audrey

I am trying to use a checkbox control on a report to
denote when a cost code equals a specific value. I have
tried setting the control source of the checkbox to

= True If [ASUP Monthly]![EMPL CC #] = 62178
(Main Table) (Cost Center)

None of the checkboxes on the report enable with this
code. Any ideas?
Thanks!
 
A

Anne Orcutt

-----Original Message-----
I am trying to use a checkbox control on a report to
denote when a cost code equals a specific value. I have
tried setting the control source of the checkbox to

= True If [ASUP Monthly]![EMPL CC #] = 62178
(Main Table) (Cost Center)

None of the checkboxes on the report enable with this
code. Any ideas?
Thanks!

Open your report in design view.
Put your cursor on the checkbox.
Open the Properties Dialog Box for the checkbox.
Select the Data Tab.
On the the Control Source line type the following:

=iif([ASUP Monthly]![EMPL CC #] = 62178, True, False)

You need to learn about the IIF FUNCTION - it is easily
found in the Access Help Index.
 

Ask a Question

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.

Ask a Question

Top