Combo Box

pekuiper

Registered User.
Local time
Today, 00:31
Joined
Sep 28, 2007
Messages
28
From my table "openshop" I have 4 fields -ospart,osqty,osdate and osdue. I want to create a combo box to look up certain data from the table and put the information into the fields on my form. The ospart in many cases is the same and the other fields are different. I have it working using only the ospart naving a drop down and chosing the ospart but can't get it working for the other 3 fields.
 
A ComboBox has a Column(n) property that is zero based so thet Column(1) is actually the 2nd column. You can use the AfterUpdate event of the ComboBox to copy the other columns to a control of your choice with:
Me.OtherControlName = Me.ComboBoxName.Column(n)
...using your control names of course.
 
Thanks RuralGuy that worked
 
Excellent! Thanks for posting back with your success.
 

Users who are viewing this thread

Back
Top Bottom