phishie
08-14-2008, 09:38 AM
Hey everyone-
I'm having an issue when trying to add new record in a table in the subdatasheet. I'm getting an error that you can't have a null value as the primary key.
I know what the issue stems from but I can't seem to find the solution. The structure is set up like this:
Relationship: [Requirements Table] -1--Many- [Mapping Table] -Many--1- [Dev Object Table]
Table: Requirements Table
Primary Key: BReq #
Table: Dev Object Table
Primary Key: Object ID
Table: Mapping Table
Primary Key: BReq # & Object ID
So when you open the Requirements Table there is a subdatasheet populated with all the Dev Objects mapped to it via the Mapping Table. I want to be able to add new Dev Objects to a Requirement by adding the Dev Object ID in the subdatasheet.
The problem comes when I enter the Dev Object ID and then click out of the cell and get the error. If I unhide columns in the subdatasheet I can see the cell for the BReq # the Dev Object ID should be related to. The problem I've noticed is that, whether hidden or not, the BReq # cell doesn't autopopulate.
Basically it seems the Master BReq # isn't cascading down to the related records in the subdatasheet. I'm lost on how to fix this. Sorry for the long explanation, not sure else how to describe the situation.
Thanks in advance,
Trevor
I'm having an issue when trying to add new record in a table in the subdatasheet. I'm getting an error that you can't have a null value as the primary key.
I know what the issue stems from but I can't seem to find the solution. The structure is set up like this:
Relationship: [Requirements Table] -1--Many- [Mapping Table] -Many--1- [Dev Object Table]
Table: Requirements Table
Primary Key: BReq #
Table: Dev Object Table
Primary Key: Object ID
Table: Mapping Table
Primary Key: BReq # & Object ID
So when you open the Requirements Table there is a subdatasheet populated with all the Dev Objects mapped to it via the Mapping Table. I want to be able to add new Dev Objects to a Requirement by adding the Dev Object ID in the subdatasheet.
The problem comes when I enter the Dev Object ID and then click out of the cell and get the error. If I unhide columns in the subdatasheet I can see the cell for the BReq # the Dev Object ID should be related to. The problem I've noticed is that, whether hidden or not, the BReq # cell doesn't autopopulate.
Basically it seems the Master BReq # isn't cascading down to the related records in the subdatasheet. I'm lost on how to fix this. Sorry for the long explanation, not sure else how to describe the situation.
Thanks in advance,
Trevor