11 thousand parts database problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a database with over 11 thousand parts and I want to filter so that
when I pick one vendor only the parts associated with that vendor will
display. Is this possible?!
 
Your tables should look like:
TblVendor
VendorID
VendorName
etc

TblPart
PartID
VendorID
PartNum
PartDesc
etc

Create a query named QryVendor based on TblVendor. Make VendorID the first
field in the query and VendorName the second field. Sort ascending on
VendorName.

Create a query named QryFrmPart based on TblPart. Sort ascending on PartNum.
Put the following expression in the criteria of VendorID.
Forms!FrmPart!VendorID

Create a continuous form. Name your form FrmPart. Your form should be a
continuous form so you get a list. Base the form on QryFrmPart. Add an
unbound combobox in the form header. Name the combobox VendorID. Set the
Rowsource property of the combobox to QryVendor. Set the Bound Column to 1,
Column Count to 2 and Column Width to 0;2. Put the following code in the
AfterUpdate event of the combobox:
Me.Requery.
 

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

Back
Top