J
jaythe0ne
Hi
I'm making a database for my football club, and have designed a form
for parent/guardian data, as the committee is made up of parents, i
thought it would be great to be able to have a check box for committee
members, that once checked, it reveals the hidden tab "Club Officials"
for further data input, i.e. committe position, crb details etc.
i've trolled the forums and thought i'd found the answer but it does
not seem to work properly.
All the data on the form comes from a table called guardians
For starters, i have made a check box on the form, and in the
properties set the control source to Club_Officer, which is a yes/no
data type in the table.
Heres the problem, i've used this code
Private Sub Check279_Click()
If Me.Check279 = "-1" Then
Me.Club_Official_tab.Visible = True
Else
Me.Club_Official_tab.Visible = False
End If
End Sub
Which makes the tab visible if the box is checked, however, it stays
visible for every record, it seems to be global.
i.e. Guardian 1 is a committee member and the box is checked, so the
committee members tab becomes visible. great, but when i goto guardian
2's record, the Committe tab is visible for that person aswell, event
though the box isn't checked, if i check and ubcheck the box, the tab
becomes invisible, but the going back to guardian 1 the tabs
disappeared aswell.
HELP! i;m going rapidly bald
Jason
I'm making a database for my football club, and have designed a form
for parent/guardian data, as the committee is made up of parents, i
thought it would be great to be able to have a check box for committee
members, that once checked, it reveals the hidden tab "Club Officials"
for further data input, i.e. committe position, crb details etc.
i've trolled the forums and thought i'd found the answer but it does
not seem to work properly.
All the data on the form comes from a table called guardians
For starters, i have made a check box on the form, and in the
properties set the control source to Club_Officer, which is a yes/no
data type in the table.
Heres the problem, i've used this code
Private Sub Check279_Click()
If Me.Check279 = "-1" Then
Me.Club_Official_tab.Visible = True
Else
Me.Club_Official_tab.Visible = False
End If
End Sub
Which makes the tab visible if the box is checked, however, it stays
visible for every record, it seems to be global.
i.e. Guardian 1 is a committee member and the box is checked, so the
committee members tab becomes visible. great, but when i goto guardian
2's record, the Committe tab is visible for that person aswell, event
though the box isn't checked, if i check and ubcheck the box, the tab
becomes invisible, but the going back to guardian 1 the tabs
disappeared aswell.
HELP! i;m going rapidly bald
Jason