Hi All,
Trying to fix an issue where my client might give me a few different options for works on the same site.
We had hoped that there was a common unique item to link them together but sadly this is not the case.
I have therefore taking the ID (Autonumber) of the Primary Record and then in a Parent ID (Number) field I am putting in the parent ID from a lookup to the Parent ID field.
I am struggling to understand how to do the relationships for this. I have created a 1 to many relationship and currently using option 2 for the join type. I am also using cascade up and cascade delete as options. I must admit, Im not too clear about the join types and when each is used.
A primary record may, but not always contain a child record. There might be as many as 2 child records. They may share a common PO number, this is not certain however as teh client raises Purchase Orders with no set pattern and we can have 1, 2 or 3 work instructions per Purchase Order Number.
So parent has children in the same table. Id like to be able to easily find records that 'belong together' and be able to group / treat them as '1 set' for each common work instruction.
Any help appreciated. Thanks.
Trying to fix an issue where my client might give me a few different options for works on the same site.
We had hoped that there was a common unique item to link them together but sadly this is not the case.
I have therefore taking the ID (Autonumber) of the Primary Record and then in a Parent ID (Number) field I am putting in the parent ID from a lookup to the Parent ID field.
I am struggling to understand how to do the relationships for this. I have created a 1 to many relationship and currently using option 2 for the join type. I am also using cascade up and cascade delete as options. I must admit, Im not too clear about the join types and when each is used.
A primary record may, but not always contain a child record. There might be as many as 2 child records. They may share a common PO number, this is not certain however as teh client raises Purchase Orders with no set pattern and we can have 1, 2 or 3 work instructions per Purchase Order Number.
So parent has children in the same table. Id like to be able to easily find records that 'belong together' and be able to group / treat them as '1 set' for each common work instruction.
Any help appreciated. Thanks.