AfterUpdate does not update!? 
Author Message
 AfterUpdate does not update!?

Hi everybody

I'm trying to use the AfterUpdate event for a combobox to update a text
box, in the same userform.

Something like this:

Private Sub comboChooseColumn_AfterUpdate()
    If Me.comboChooseColumn.Text = "Column 1" Then
        Me.txtNoFields.Text = Range("NoFields1").Text
    Else
        Me.txtNoFields.Text = Range("NoFields2").Text
    End If
End Sub

The combobox contains two values, and the user is to specify one. While
still in the userform, the textbox (locked) must be updated with the
appropriate value, automatically.

But it does not work.

Anyone have any ideas as how to solve my problem?

Regards

Martin

Sent via Deja.com
http://www.*-*-*.com/



Mon, 14 Jul 2003 23:29:43 GMT  
 AfterUpdate does not update!?
Quote:

> I'm trying to use the AfterUpdate event for a combobox to update a text
> box, in the same userform.

Try the Change event
AfterUpdate only fires when you move the focus to a different control.

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - reply in newsgroup



Tue, 15 Jul 2003 17:17:13 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. BeforeUpdate not followed by AfterUpdate (not consistent)

2. Update a Subform from Form on AfterUpdate Event

3. A2K test box AfterUpdate doesn't update like A97

4. Continous subform AfterUpdate keeps after updating!

5. Update Statement in AfterUpdate Event

6. afterupdate vb code to update a table data field

7. AfterUpdate Property - with or without updating?

8. Look up list not updating not updating in form

9. AfterUpdate For TextBox Not Launching?

10. AfterUpdate event not happening until exit of text box


 
Powered by phpBB® Forum Software © phpBB Group