I want to be able to lock a product description to a part number, so when the
part number is entered on a form the description will be displayed automaticly
John Vinson - 08 Jul 2006 01:47 GMT
>I want to be able to lock a product description to a part number, so when the
>part number is entered on a form the description will be displayed automaticly
Where in your Tables is this information stored?
I'd suggest having a Parts table with fields PartNumber and
ProductDescription (and perhaps other fields). On your Form, put a
Combo Box based on this table, bound to the PartNumber field in the
form's table. The combo's RowSource should be a query selecting the
part number and the description.
Put a Textbox on the form with a controlsource
=comboboxname.Column(1)
using your actual combo box's name; the (1) means display the *second*
column of the combo's row source query, it's zero based.
John W. Vinson[MVP]
Dave - 10 Jul 2006 06:10 GMT
I also need to do the same in a table, will the same method work.
Thanks Heaps
> I want to be able to lock a product description to a part number, so when the
> part number is entered on a form the description will be displayed automaticly
John Vinson - 10 Jul 2006 18:02 GMT
>I also need to do the same in a table, will the same method work.
No. But then you should never under any circumstances use a Table
Datasheet for routine editing or viewing of data anyway, so it doesn't
matter - just use a Form.
John W. Vinson[MVP]