Query Problems?

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I have two Subforms on a page. The first one is linked to the main
form, the second Subform is linked to the first Subform. This basically
works fine. The First Form is ORDERS, The Second is PRODUCTS, and the
Third is MODS. The problem is that whenever I go back to a record in
Products it gives me all of the Mods that have ever been selected for
that Product, not just for that particular order. I looked at the
Northwinds example, but unfortuately I have an extra Table involved, I
tried playing with my Queries but that didn't work either. I tried
adding the Order number to the MODS, but that didn't work either.

This is the Table layout, Perhaps something wrong there?

ORDER TABLE Order ID
to
ORDER DETAIL TABLE Order ID, Product ID
to
PRODUCTS TABLE Product ID
to
MOD DETAIL TABLE Product ID, Mod ID
to
MODS TABLE Mod ID

Thanks,
DS
 
You list 4 tables but say that you only have three forms. What are you doing
with the OrderDetail table? How does Products work into it? What are your
primary and foreign keys for each of the tables?
 

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

Similar Threads

NZ #ERROR Working 2
How is the ordes details retrieving the Unit Prices? 14
Access Passing the value to a table 1
Combo Boxes - linking of 5
NZ #ERROR 15
adding records to customers order 1
Multi Table query 2
calculating qoh query 2

Back
Top