G
Guest
A while ago I posted a need to hide a report detail section using a checkbox
'SumView' on a form. The original code provided to me (which worked great!)
is as follows:
Private Sub Report_Open(Cancel As Integer)
Const strcForm As String = "FMinvxMENU"
If CurrentProject.AllForms(strcForm).IsLoaded Then
Me.Section(acDetail).Visible = _
Nz(Forms(strcForm)!SumView.Value, False)
End If
End Sub
I have three other header sections above the details section (PartNumber
Header, Site Header, Area Header) that I want to be able to hide as well
using buttons on a form.
How can I expand this code to hide any or all of the details and section
headers?
'SumView' on a form. The original code provided to me (which worked great!)
is as follows:
Private Sub Report_Open(Cancel As Integer)
Const strcForm As String = "FMinvxMENU"
If CurrentProject.AllForms(strcForm).IsLoaded Then
Me.Section(acDetail).Visible = _
Nz(Forms(strcForm)!SumView.Value, False)
End If
End Sub
I have three other header sections above the details section (PartNumber
Header, Site Header, Area Header) that I want to be able to hide as well
using buttons on a form.
How can I expand this code to hide any or all of the details and section
headers?