A
Agnes
In my Form, there is Invoice Master to - InvoiceDetail (one-to-may
relationship)
I use bmMaster.removeat(bmMaster.position) to remove the Master record.
However, I don't know how to remove the Detail records ????
I got relationkey between that two tables.
Dim constraint_tinvno As New ForeignKeyConstraint("fk_tinvno",
dtTvHeader.Columns("tinvno"), dtTvDetail.Columns("tinvno"))
dtTvDetail.Constraints.Add(constraint_tinvno)
dsTvHeader.Relations.Add("fk_tinvno",
dtTvHeader.Columns("tinvno"), dtTvDetail.Columns("tinvno"), False)
relationship)
I use bmMaster.removeat(bmMaster.position) to remove the Master record.
However, I don't know how to remove the Detail records ????
I got relationkey between that two tables.
Dim constraint_tinvno As New ForeignKeyConstraint("fk_tinvno",
dtTvHeader.Columns("tinvno"), dtTvDetail.Columns("tinvno"))
dtTvDetail.Constraints.Add(constraint_tinvno)
dsTvHeader.Relations.Add("fk_tinvno",
dtTvHeader.Columns("tinvno"), dtTvDetail.Columns("tinvno"), False)