if this is selected so should this

tubar

Registered User.
Local time
Today, 01:40
Joined
Jul 13, 2006
Messages
190
on my form if a user selects a check box i want another check box on the form to be selected automatically...how do i make that happen
 
Are both or each of the check boxes bound or unboud?

If they are both bound then put this in the after update event of the first checkbox (ChkBox1)

Code:
Me.ChkBox2 = Me.ChkBox1
 
tubar said:
on my form if a user selects a check box i want another check box on the form to be selected automatically...how do i make that happen

in the properties of the first chk box, tab events.
in the on click event, you could add some code to assigne a specific value to the second chk box.

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

good luck, max.
 
Use the after update code, as a check box can be changed from other control events or code, thus not using the click event.

Dave
 
Last edited:
adaniele said:
in the properties of the first chk box, tab events.
in the on click event, you could add some code to assigne a specific value to the second chk box.

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

good luck, max.




WORKED THANKS GENTS
 

Users who are viewing this thread

Back
Top Bottom