I have an option group on a form which gives choices about whether a persons contact details are available to be printed out(on a report). I need assistance with two areas.
Here is what I have thus far;
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
Select Case (not sure what to put for this expression)
Case 1
???????
Me.address.Visible = True
Me.town.Visible = True
Me.Home_phone.Visible = True
Me.email.Visible = True
Case 2
Me.address.Visible = True
Me.town.Visible = True
Me.Home_phone.Visible = False
Me.email.Visible = False
Case 3
Me.address.Visible = True
Me.town.Visible = True
Me.Home_phone.Visible = True
Me.email.Visible = False
Case 4 etc
End Select
End Sub
Your assistance is greatly appreciated
- Do I need to store the value of the option group in a table for later use or can I simply access the value from the form? [forms] ! [fEntryDetails] ! [fConDetOpGp] The option group has values 1 to 7
- I’m not sure how to set up the select case expression to help deal with option group etc.
Here is what I have thus far;
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
Select Case (not sure what to put for this expression)
Case 1
???????
Me.address.Visible = True
Me.town.Visible = True
Me.Home_phone.Visible = True
Me.email.Visible = True
Case 2
Me.address.Visible = True
Me.town.Visible = True
Me.Home_phone.Visible = False
Me.email.Visible = False
Case 3
Me.address.Visible = True
Me.town.Visible = True
Me.Home_phone.Visible = True
Me.email.Visible = False
Case 4 etc
End Select
End Sub
Your assistance is greatly appreciated