speaking of check boxes

tubar

Registered User.
Local time
Today, 17:15
Joined
Jul 13, 2006
Messages
190
what if i dont want a user to be able to select check box 2 if check box 1 isnt select
 
But in your other post you said you wanted one to reflect the other ??
 
The other post reply was

Private Sub Check0_Click()
If Me.Check0 = -1 Then
Me.Check2 = -1
Else
Me.Check2 = 0
End If
End Sub

Try:

Private Sub Check0_Click()
If Me.Check0 = True Then
Me.Check2.enabled = True
Me.Check2 = True
Else
Me.Check2.enabled = False
Me.Check2 = False
End If

End Sub
 
Oldsoftboss said:
But in your other post you said you wanted one to reflect the other ??


this is a different part of the form...if user selects check box 0 true i want the user to beable to select true or false in check box 1 and checkbox 2

if user selects check box 0 false i want the user NOT to beable to select true or false in check box 1 and checkbox 2
 
you need to put some code in the after update event of the control.
 
KeithG said:
you need to put some code in the after update event of the control.


anyone have an idea what the code is
 
Private Sub Check0_AfterUpdate()
If Me.Check0 = True Then
Me.Check2.enabled = True
Else
Me.Check2.enabled = False
Me.Check2 = False
End If
 
Private Sub Check0_AfterUpdate()
If Me.Check0 = True Then
Me.Check2.enabled = True
Else
Me.Check2.enabled = False
Me.Check2 = False
End If
 

Users who are viewing this thread

Back
Top Bottom