Hi all,
I have a dataset called dsStage. This dataset contains two tables - Stage and StageSub.
I have created a relationship between the two... This is called relstage.
I used the following code to create the relationship:
I have the following code underneath a button to navigate between the records in the stage table:
I have the stage table info being displayed in text boxes at the top of the form.... My question is, how do I use my relationship to show the correct stageSub information in a datagrid on the form, changing it in relation to the stage being shown?
Thanks in advance,
Woody
I have a dataset called dsStage. This dataset contains two tables - Stage and StageSub.
I have created a relationship between the two... This is called relstage.
I used the following code to create the relationship:
Code:
Dim relStage As New DataRelation("StageRel", _
DsStage.Tables("Stage").Columns("StageNo"), _
DsStage.Tables("StageSub").Columns("StageNo"))
DsStage.Relations.Add(relStage)
I have the following code underneath a button to navigate between the records in the stage table:
Code:
Me.BindingContext(DsStage, "Stage").Position = (Me.BindingContext(DsStage, "Stage").Position - 1)
I have the stage table info being displayed in text boxes at the top of the form.... My question is, how do I use my relationship to show the correct stageSub information in a datagrid on the form, changing it in relation to the stage being shown?
Thanks in advance,
Woody