AfterUpdate on Textbox fires more than once. 
Author Message
 AfterUpdate on Textbox fires more than once.

Hello All,

I have a simple form with a listbox and a command button. When I enter data
into the listbox and press the command button, the Listbox_AfterUpdate event
fires twice and erratically. If I step thru the code, it fires once and when
it should fire. I think this is a bug in XL97 because a few people from the
LISTSERV's are reporting the same problem.

Can someone verify that there is a bug and why?

Here is my code:

Private Sub cmbClr()
    For Each MyControl In Controls
        If (MyControl.Name Like "tb*") Then
            MyControl.Value = ""
        End If
    Next MyControl
End Sub

Private Sub cmbOK_Click()
    Call cmbClr

' If you comment out the following line,
' or place a breakpoint here-
' it works perfectly
    tbOrderNum.SetFocus
End Sub

Private Sub tbOrderNum_AfterUpdate()
MsgBox "Updating DataSaved to FASLE!"
End Sub

--

Julian Milano
IT Supervisor
Viviannes Collection



Tue, 12 Mar 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. AfterUpdate and LostFocus Events do not fire

2. Firing AfterUpdate Event

3. Listbox - nav to rec by keystroke does not fire AfterUpdate

4. Listbox - nav to rec by keystroke does not fire AfterUpdate

5. Listbox - nav to rec by Alpha does not fire AfterUpdate

6. Form not firing AfterUpdate

7. AfterUpdate of form not firing in a Project

8. AfterUpdate of form not firing in a Project

9. Listbox - nav to rec by keystroke does not fire AfterUpdate

10. Auto-reply only fires once???


 
Powered by phpBB® Forum Software © phpBB Group