I am working in an access database where I want to have a form with a sub form that has a tab control with multiple sub-sub forms. The top form links between primary_key1 and foreign_key1 on the sub form with the tab control, and the sub form links between primary_key2 and foreign_key2 on the sub-sub forms. Opened directly the sub form and all the sub-sub forms are linked together and function as intended. However, when inserted into the top form and opened access opens a popup asking for a value for primary_key2. Clearing the linking properties on all the sub-sub forms and testing each one, I determined that it is doing this for each of the sub forms.
As I am not sure where the problem is, I’ll provide as many details on the database structure as I can think of. Apologies for extraneous information. Below is the relationship view of the relevant tables. The Operations table is the record source for the top form, Flights for the sub form, the other four are the record sources for the sub-sub forms. The operations form and flight forms are formatted as single forms, the sub-sub forms are a mix of continuous and datasheet forms.
Relationships of relevant tables
Table | Field | Field Size |
---|---|---|
Operations | ID (primary key) | Long Integer |
Operations | 10 other fields | Date/time, Long Integer, Short Text, or Attachment |
Flights | Flight_ID (primary key) | Long Integer |
Flights | Operation_ID (foreign key) | Long Integer |
Flights | 57 other fields | Date/time, Long Integer, Short Text, Yes/No, Hyperlink, or Attachment |
FlightCrewAssignments_JcnTbl | ID (primary key) | Long Integer |
FlightCrewAssignments_JcnTbl | OperationID (foreign key) | Long Integer |
FlightCrewAssignments_JcnTbl | FlightID (foreign key) | Long Integer |
FlightCrewAssignments_JcnTbl | Crew_RoleID (foreign key) | Long Integer |
FlightCrewAssignments_JcnTbl | CrewID (foreign key) | Long Integer |
preemptive thanks for your assistance
Cameron