Build a form based on your table.
Place all the fields on the form.
click on the "magic wand" and then the combo box control.
Place the combo where you like, (form header or footer is good) then click "find a record on my form based on a value I selected in my combo box"
Click next to choose what field you would like to search on eg. products.
I hope this helps.
Peter Remember- It's nice to be important,
but it's important to be nice
If you have a number of vendors per product then this is a 1-to-many relationship. You need to create a form for vendors (maybe use the form wizard), then create a form for product. There must be a relational-key in both, so for example, product1 is "white Loaf", it has three vendors (spar, centra and marks and spencers). The tables (for this example) would be populated this way :
Product Table
-------------
ProductID 1
Product Description White Loaf
Vendor Table
------------
VendorID SP
Vendor Name Spar
VendorID CTR
Vendor Name Centra
VendorID MAS
Vendor Name Marks and Spencers
OK, so now you need to create a link-table to link this info.
ProdVend Table
==============
ProdVendID 1
ProductID 1
VendorID SP
ProdVendID 1
ProductID 1
VendorID CTR
ProdVendID 1
ProductID 1
VendorID MAS
OK, so now you have the tables created, you need to create a form called ProdVend. You can neaten it up by using combo boxes to allow the user to select actual descriptions of vendors and products, rather then enter the actual ID's.
Once you have created the form ProdVend, save it. Now go to the Products form and insert a subform. Use the keys in ProdVend to create your forms.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.