EvgenyT,
Thank you for the info, however I am still strugling to get the code correct, please could you confirm that this is the correct code?
Dim myDA As New OleDb.OleDbDataAdapter("spQryParentComments", myDB.myConn)
myDA.TableMappings.Add("Table", "tblInfo")
myDA.SelectCommand.CommandType = CommandType.StoredProcedure
Dim myDS As New DataSet("Original")
myDA.Fill(myDS)
Dim myChildDA As New OleDb.OleDbDataAdapter("spQryChildComments", myDB.myConn)
myChildDA.TableMappings.Add("Table", "tblInfo")
myChildDA.SelectCommand.CommandType = CommandType.StoredProcedure
myChildDA.Fill(myDS)
Dim parentColumn As DataColumn = myDS.Tables("tblInfo").Columns("colUniqueID")
Dim childColumn As DataColumn = myDS.Tables("tblInfo").Columns("colID")
Dim relation As DataRelation = New System.Data.DataRelation("NumbersConnections", parentColumn, childColumn)
myDS.Relations.Add(relation)
myDB.DisConnect()
Me.FlyGrid2.Rows.Items.Clear()
Me.FlyGrid2.Rows.DataSource = myDS
Me.FlyGrid2.Rows.DataMember = "tblInfo"
Me.FlyGrid2.Focus()
Sorry to be a pain.
Thanks in advance
Simon