Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update check box based on value in another

Status
Not open for further replies.

ste4en

Technical User
Aug 1, 2001
69
I have a row of checkboxes to show work stages completed. If I check box stage4 - I want stage1, stage2 and stage3 to be checked. Below is how I was trying to get Stage3 to check itself. It is on the AfterUpdate. It does not work. Please show me how. Thanks; Steve

Private Sub Stage4_AfterUpdate()
If Stage4 = -1 Then
Stage3 = -1
Else
Stage3 = 0
End If

End Sub
 
Code:
Private Sub Stage4_AfterUpdate()
    Me.Stage3 = Me.Stage4
End Sub


Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top