|
-
May 17th, 2000, 08:33 AM
#1
Problem with recursive click event.
After a selection made from a combo box I want to check to see if certain conditions are met if not I want to reset the combo box to force the user to make the appropriate selection. Then problem is that when I reset the combo box it triggers the click event again and I get a repeat of the test and the message. Is there a way to turn off the event checking for the combo box while I reset it.
Private Sub cmboTest_Click()
If condition Then
msgrtn = MsgBox("Incorrect selection made", vbOKOnly)
cmboTest.ListIndex = -1
Exit Sub
End If
End sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|