Well, you could have code in the detail format event:
[CheckBoxA].Visible = [CheckBoxA]
..... etc.
[CheckBoxYY].Visible = [CheckBoxYY]
But I think it would be simpler to cheat so no coding is needed.
Include the 50 Check Box fields in the Report RecordSource as usual.
Then, instead of dragging the actual check box fields into the report, add
an unbound text control.
Set it's control source to the [CheckBoxA] field.
Set it's Font Style to 'Wingdings'.
Set it's Format Property to (simply highlight the below 6 characters
and paste them (as a group) into the control's format property):
;\þ;""
Whenever the check box value is Yes (-1) the check box will be shown.
If the value is unchecked (0), nothing will appear.
(That þ character is actually a wingdings chr(254), a check box.)
The nice thing about this method is that you can even make the check box
larger if you like. Just change the FontSize.
For the additional check controls needed, simply copy this one and paste it
back into the section. You now have 2 controls. Separate them a bit.
Select both of these controls, copy them and paste them back into the
section. You now have 4 controls.
Separate these so they are individual.
Select these 4, copy and paste them. You now have 6. Separate, Copy and
Paste. Now you have 12, etc.
When you get your 50 controls set up in the report,
***CHANGE EACH control source to the appropriate CheckBox field, and all is
done. ***
Note: If you would rather have a check mark (without the surrounding square
box) use;
;\ü;""
(a chr(252) instead).
Hope this helps.