Hi All,
I created a small database (personal project) to calculate transportation costs. its real simple, pol+pod combination (called a Lane) is subject to a specific slotrate or a slotcost.
1 lane can only have 1 slotrate or 1 slot cost (the "one" side) assigned to it.
while 1 slotrate or 1 slotcost can have 1 or more lane(s) (the "many" side) assigned to it.
attached capture.jpg file with the access relationship for more details.
When I need to create a Lane I would then need to assign a pre-established slotcost or slotrate to said Lane. I created a form to enter data into the Lanes table, but when I try to assign the new Lane a Slot Rate ID or Slot Cost ID in the Lanes Table I get this error:
"You cannot add or change a record because a related record is required in table 'tblSlotCosts or tblSlotRates"
I've googled this error and found a lot of information, the last suggestion I tried was changing the FK field properties in the Lanes table default value to nothing (removing the 0) and required to "No" but this did not work. I still get the same error.
see attached capture2.jpg
I understand that I'm entering the data into the Child table (tblLanes first), but this is something I need to do. I need the ability to create a Lane based on a pol and pod combination when required and then assign the SlotRate or SlotCost applicable.
any help would be appreciated.
tks
Eric