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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Auto fill text box

Status
Not open for further replies.

edgarchado

Technical User
Joined
Apr 5, 2005
Messages
59
Location
AR
Hi,

I am using a combo box which, after selecting an option automatically
fills a text box. In my case, I choose our clients name from the combo box
and it should automatically fill his telephone number in the text box.

The problem is the it does not fill it automatically. I have to click on
the text box and press enter so it can retrive the value.

I am using this code in the afterupdate event of the combo box.

Private Sub Productora_AfterUpdate()
Me.ID_Productora = Me.Productora.Column(2)
Me.Telefono_Productora = Me.Productora.Column(1)
End Sub

Any idea of what it could be happening???

Thanks in advance.
 
Sorry, wrong forum.. will post in forms forum.

 
Try using the ON CHANGE instead of AFTER UPDATE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top