473,472 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

A little help with Master Child subform using 3 tables

3 New Member
Hi.

I have 3 tables that I need to display on a master-child form/subform. Think of it as Orders and Order Details.

The tables are

Orders
OrderDetails
VendorItems

The reason for the complexity is that my users can get the same item from multiple vendors. When they enter the order detail I want them to enter the vendor part number but the actual field they will update in OrderDetails will be ItemID which identifies each distinct part in the Item table.

Therefore, the order has a VendorID. I want to avoid storing the VendorID in the OrderDetail table as well, but maybe I need to relax that requirement and get over it. Anyway, the Order and OrderDetail form/subforms are linked by OrderID and then each line item in the detail is a unique OrderDetailID. To do my lookups for VendorItem (vendor's part number, which they will enter but the system unique ItemID will go in the OrderDetail table) and VendorDesc based on VendorID which is on the parent form.

Hopefully this makes sense. What is the best way to have a subform be able to get a field from the parent form that is not the link field?

Should I just bite the bullet and add VendorID to the detail table?

Thanks.
Oct 28 '07 #1
2 1626
FishVal
2,653 Recognized Expert Specialist
Hi, there.

[VendorItems] is the table linking Items table and Vendors table in many-to-many relationship, am I right?
So why not to store [VendorItems] PK in [OrderDetails]?
Oct 28 '07 #2
dbstrat
3 New Member
Hi, there.

[VendorItems] is the table linking Items table and Vendors table in many-to-many relationship, am I right?
So why not to store [VendorItems] PK in [OrderDetails]?
You know, that sounds like a pretty good idea actually. I'm going to give that a shot, then for reporting I can always use the Items table in a join to find an item regardless of the originating vendor.

Thanks for showing me something simple that I couldn't see.
Oct 29 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Don Seckler | last post by:
I am building an application to track the distribution and returns of copies of magazines. Copies of a magazine that are unsold are returned by the retailer to the wholesaler. They are...
4
by: Erik Thorsen | last post by:
I need help with a tricky questions which I belive have a simple solution? For those who know Nwind.mdb, the example database that comes with microsoft access, it has several different tables. One...
3
by: Robert McEuen | last post by:
Using A2K3, Windows XP I'm handling a many-to-many relationship with a linking table structure as follows (irrelevant fields omitted): tblIssue PK_IssueID (autonumber, primary key) IssueName...
3
by: 6afraidbecause789 | last post by:
Think school - students - discipline interventions - misbehaviors - staff for this one....On a mainform frmStudentInterventions, I have linked a subform (sfrmMisbehaviors) with another subform...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.