Access 2003

  • Thread starter Thread starter JAS
  • Start date Start date
J

JAS

I want to use a lookup table to fill a number of boxes on a form.
I have created a combo box from where I pick the initial info, and once
picked the other text should be filled in. How do I go about this?
 
Hi

If they are bound controls (text boxes) use the AfterUpdate event of the combo

Private Sub ComboName_AfterUpdate()
Me.ControlName1 = Me.ComboName.Column(1)
Me.ControlName2 = Me.ComboName.Column(2)
Me.ControlName3 = Me.ComboName.Column(3)
'ect'
End Sub

If they are not bound to a table field you could just use
= ComboName.Column(3)
as the control source for the text boxes

Hope this helps
 
Thanks Wayne,
Just what I required.

JAS

Wayne-I-M said:
Hi

If they are bound controls (text boxes) use the AfterUpdate event of the combo

Private Sub ComboName_AfterUpdate()
Me.ControlName1 = Me.ComboName.Column(1)
Me.ControlName2 = Me.ComboName.Column(2)
Me.ControlName3 = Me.ComboName.Column(3)
'ect'
End Sub

If they are not bound to a table field you could just use
= ComboName.Column(3)
as the control source for the text boxes

Hope this helps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top