Anthony.DG
Registered User.
- Local time
- Today, 04:57
- Joined
- Oct 18, 2019
- Messages
- 27
The setup -
3 Tables: [tblCarriers], [tblTrucks], [tblTicketing](junction table)
1 Form: [frmTicketing]
[tblCarriers](one) has a foreign key linked from [tblTrucks](many).
[tblTrucks](one) has a foreign key from [tblTicketing](many)
[tblTicketing](one) had a foreign key from [tblCarrier](many) but the relationship and field were deleted because it caused a relationship loop.
The problem -
On [frmTicketing] there are 2 combo boxes: (1)[cboCarriers], (2)[cboTrucks].
[cboTrucks] only shows a selection of Trucks depending on what you choice you select from [cboCarriers]
BUT...now that the relationship loop from [tblCarriers] was deleted along with the its foreign key field ([CarrierID])in [tblTicketing] the 2 combo boxes no longer work.
So, I see one solution to immediately is to put back the field [CarrierID] just to store the number as a reference but don't put back the relationship (otherwise I'm putting the relationship loop back) and move forward.
But that in itself creates 2 problems i see.
1.The [CarrierID] field in [tblTicketing] is redundant information that bloats the database
2. The lack of a relationship from [tblTicketing].[CarrierID] to [tblCarriers] makes it possible on [frmTicketing] for [cboCarriers] and [cboTrucks] to have 2 selections that are not actually related to each other.
The question -
I don't know what to do. I want to have my 2 combo boxes so that [cboCarriers] filters the selection for [cboTrucks] but I don't want to store the [CarrierID] field on [tblTicketing]. And I also need to be able to see the name of the Carrier on [frmTicking] when entering data and when it gets printed. I want to have my cake and eat it to without any relationship loops. Or should I leave a relationship loop in, much harm?
Anyone have any solutions or ideas or any additional need information needed to help me figure out what I can do to get what I want?
3 Tables: [tblCarriers], [tblTrucks], [tblTicketing](junction table)
1 Form: [frmTicketing]
[tblCarriers](one) has a foreign key linked from [tblTrucks](many).
[tblTrucks](one) has a foreign key from [tblTicketing](many)
[tblTicketing](one) had a foreign key from [tblCarrier](many) but the relationship and field were deleted because it caused a relationship loop.
The problem -
On [frmTicketing] there are 2 combo boxes: (1)[cboCarriers], (2)[cboTrucks].
[cboTrucks] only shows a selection of Trucks depending on what you choice you select from [cboCarriers]
BUT...now that the relationship loop from [tblCarriers] was deleted along with the its foreign key field ([CarrierID])in [tblTicketing] the 2 combo boxes no longer work.
So, I see one solution to immediately is to put back the field [CarrierID] just to store the number as a reference but don't put back the relationship (otherwise I'm putting the relationship loop back) and move forward.
But that in itself creates 2 problems i see.
1.The [CarrierID] field in [tblTicketing] is redundant information that bloats the database
2. The lack of a relationship from [tblTicketing].[CarrierID] to [tblCarriers] makes it possible on [frmTicketing] for [cboCarriers] and [cboTrucks] to have 2 selections that are not actually related to each other.
The question -
I don't know what to do. I want to have my 2 combo boxes so that [cboCarriers] filters the selection for [cboTrucks] but I don't want to store the [CarrierID] field on [tblTicketing]. And I also need to be able to see the name of the Carrier on [frmTicking] when entering data and when it gets printed. I want to have my cake and eat it to without any relationship loops. Or should I leave a relationship loop in, much harm?
Anyone have any solutions or ideas or any additional need information needed to help me figure out what I can do to get what I want?