Combobox Question

Kriis

Registered User.
Local time
Today, 03:58
Joined
Feb 16, 2006
Messages
25
Is this possible?

I want to have a combo box with a listing of names from a table. Once you choose a name, a textbox in the same form (not subform) populates with the corresponding ID.

Thanks.
 
yes it is. if you post you DB I'll show you how to do it....

Bones
 
Post my database?
 
If this can be done, can someone please tell me how?

My form name is called test.

Combo0 is a list of Oil_Names from the Oil table

I want the text box called testbox to display the Oil ID, after I choose the Oil Name from Combo0.

Do I create a query for the record source of the test form? I tried that and then I tried the following code for the combobox

Private Sub Combo0_AfterUpdate()
[test].Requery

It didn't work.
 

Users who are viewing this thread

Back
Top Bottom