" and the name of the section (e.g. "Section: Detail"). If you can't see the
property sheet, you can select "Properties" from the "View" menu or simply
double-click on either the section background or the bar at the top of the
section. Now, click on the "Event" tab in the property sheet and you will find
"On Format" in the list. If you type a "[" in the property field beside "On
Format", the property field should autofill with "[Event Procedure]". Now click
on the "build" button (...) to the right of that property field and the code
window should open. Enter the code in the code window between the two existing
lines so that your procedure will look like this (I've used the "Detail" section
in the following example):
'**************EXAMPLE START
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.YesNo1.Visible = Me.YesNo1.Value
End Sub
'**************EXAMPLE END
Again, you need to replace "YesNo1" with the name of your checkbox and you will
need one such line of code for each checkbox you wish to show/hide in that
section. If you have other checkboxes you wish to show/hide that are located in
other sections, you will need to duplicate these steps for each applicable
section.
Let me know how you make out.
--
Bruce M. Thompson
(e-mail address removed) (See the Access FAQ at
http://www.mvps.org/access)within the newsgroups so that all might benefit.<<
.