Retrieving data into a form

G

Guest

I would like to input a part number onto to a form. After entering the part
number, I would like to populate the from with the nomenclature, serial
number, description, etc... for that specific part number. How do you do
this?

Thank you.
 
P

pietlinden

Marilyn said:
I would like to input a part number onto to a form. After entering the part
number, I would like to populate the from with the nomenclature, serial
number, description, etc... for that specific part number. How do you do
this?

Thank you.

create a combobox for the part number. Set the column count to the
number of fields you want to autopopulate (0r more).

then you can set the control source for the textboxes to
cboMyCombo.Columns(1) etc
the columns collection is zero-based, so you'd use
cboMyCombo.Columns(0) to .ColumnCount-1
 
J

John Vinson

I would like to input a part number onto to a form. After entering the part
number, I would like to populate the from with the nomenclature, serial
number, description, etc... for that specific part number. How do you do
this?

Thank you.

If you're trying to copy all this information from one table into
another table... DON'T. It's neither necessary nor appropriate to
store data redundantly.

If the Form is based on the Table containing this information, use the
Toolbox Combo Box tool (with the magic wand icon selected) and choose
the option "Use this combo box to find a record".

If you want to do something else... please explain a bit about your
table structure (where is this data coming from? What's the
recordsource of this Form?); I'm sure it can be done.

John W. Vinson[MVP]
 

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

Top