Can anyone please tell me how to create a Master/Detail
relationship between two Tables in MyDataBase.gdb which have a common field P_NO between them?
In MyDatBase.gdb I have one table called "MST" hooked to TIBDataSet1 and another table called "DET" hooked to TIBDataSet2. Each are hooked to a grid.
In the SelectSQL Property of TIBDataSet2 I have the following code
SELECT *
FROM DET t2, MST t1
WHERE t2.P_NO = t1.P_NO.
But moving the pointer in the MST-grid has no effect on the DET-grid whilst I am expecting to see ONLY those records in DET-grid where the P_NO = P_NO pointed to in MST-grid.
What am I missing?
relationship between two Tables in MyDataBase.gdb which have a common field P_NO between them?
In MyDatBase.gdb I have one table called "MST" hooked to TIBDataSet1 and another table called "DET" hooked to TIBDataSet2. Each are hooked to a grid.
In the SelectSQL Property of TIBDataSet2 I have the following code
SELECT *
FROM DET t2, MST t1
WHERE t2.P_NO = t1.P_NO.
But moving the pointer in the MST-grid has no effect on the DET-grid whilst I am expecting to see ONLY those records in DET-grid where the P_NO = P_NO pointed to in MST-grid.
What am I missing?