Help with query and subform

S

SirPoonga

This is going to take some explaining. I'm going to use a generic
example of the problem at hand.

Lets say I have a products table. For each product it has a make and
model along with other attributes. We assign each product our own
prduct code. The product can have two options, lets call them option1
and option1. I have a table to store info for option1. There is an
autonumber ID field, product code field to link to the products table,
and other various fields for attributes of the option. Simular goes
for option2.

Now, a specific manufacturer has their own codes for their product.
Given a single manufacturer's code one would know the make, model,
option1, and option2. So in the relationships this table is tied to
the products, option1, and option2 table. I can look up our products
based on the manufacturer code easily enough.

However I have a form witha s ubform in it. It's a custom filter form
to find our products. It consists of a series of dropdown boxes then
an "Apply Filter" button. The button updated the subform's .Filter and
..OrderBy. However, I'd like the manufacturer's part number to show up
if there is one. Since ther table that contains that info is tied to
several tables I cna't use a left join.
I thought about making a table that stored the product table primary
key, the option1 table primary key, the option2 primary key, and the
manufacturer code table primary key. But I run into the same problem
that that table is tied to everything therefore I can not do a left
join.

By left join I mean, how does access put it, ALL records from the
products table, options 1 table, options 2 table and only those from
the manufacturer code table that match.

Any ideas on how to do this?
 
P

Phil Stanton

Sounds to me a bit like having a Product and 2 suppliers who can supply that
product although obviously they have their own names, codes, prices etc. If
that is correct you need a table of Products, a table of SupplierProducts
and a Join Table linking ProductID to SupplierProductID. Then you have don't
have limits of the numbers of suppliers for each of your product.

The SuppliersProducts can all been seen on the subform, and you can use
Combo / List boxes to find your product.

Did something like that for a guy who was making flavourings, and had, for
example, about 5 suppliers of salt.

HTH

Phil
 

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