Arg81
Well-known member
Adding New Records to 3 tables.
Hi Guys,
Been here before with this but no-one had a suggestive answer unfortunately.
I'm sure this is a problem I caused, but I can't see where.
I have 3 tables.
Table1 FieldID1 is linked to Table2 FieldID1.
Table2 FieldID1 is linked to Table3 FieldID1.
Table2 FieldID2 is linked to Table3 FieldID2.
When I add a new record to Table1, the FieldID is cascaded to Table2 - this is represented by a DataGrid.
When I add a record to Table2, FieldID1 is cascaded to Table3, BUT FieldID2 ISN'T.
This is shown either by using the DataGrid Relationship (+), which when clicked to display Table3 rows, FieldID2 is set to NULL.
HOWEVER, if I then click into a new row in the DataGrid and back to the one I've just added, and then click the relationship, FieldID2 is now shown correctly, and data can be successfully added to Table3.
Is this a bug in VS.Net, or something in my programming? The datagrid is set to the relationship between Table1 and Table2, and I've tried adding another DataGrid for the relationship between Table2 and Table3, but still have the problem of it being NULL unless clicked out of that record.
Thanks!
Luke
Hi Guys,
Been here before with this but no-one had a suggestive answer unfortunately.
I'm sure this is a problem I caused, but I can't see where.
I have 3 tables.
Table1 FieldID1 is linked to Table2 FieldID1.
Table2 FieldID1 is linked to Table3 FieldID1.
Table2 FieldID2 is linked to Table3 FieldID2.
When I add a new record to Table1, the FieldID is cascaded to Table2 - this is represented by a DataGrid.
When I add a record to Table2, FieldID1 is cascaded to Table3, BUT FieldID2 ISN'T.
This is shown either by using the DataGrid Relationship (+), which when clicked to display Table3 rows, FieldID2 is set to NULL.
HOWEVER, if I then click into a new row in the DataGrid and back to the one I've just added, and then click the relationship, FieldID2 is now shown correctly, and data can be successfully added to Table3.
Is this a bug in VS.Net, or something in my programming? The datagrid is set to the relationship between Table1 and Table2, and I've tried adding another DataGrid for the relationship between Table2 and Table3, but still have the problem of it being NULL unless clicked out of that record.
Thanks!
Luke
Last edited: