G
Gordo
Hi;
I am try to select only child rows of data from two
related dataset data tables. I am using
the "table.select" method.
Here is an example of the code :
Dim holdstr As String =
MonthCalendar1.SelectionEnd.ToShortDateString
For Each rowCase In dsCases.Tables("dtCases").Rows
For Each rowDoc In rowCase.GetChildRows
("Casenme")
aDocs() = rowDoc.Table.Select
("doc_dte_due = '" & holdstr & "'")
Next rowDoc
Next rowCase
Next in the code I want to load a list box with the
selected records.
ListBox1.Items.Add(rowCase("case_id") & " " & rowDoc
("Document_nme"))
Casenme being the name of the relation object.
I have tried to find a example of this being done in
several books and in the ADO.net documentation. But the
only examples for example ppgs 340-341 in David Sceppa's
excellent ADO.net reference book, use only single tables
using string literals. I need to use a string variable.
Has anyone here encountered a similar problem ?
Thanks,
Gordon
I am try to select only child rows of data from two
related dataset data tables. I am using
the "table.select" method.
Here is an example of the code :
Dim holdstr As String =
MonthCalendar1.SelectionEnd.ToShortDateString
For Each rowCase In dsCases.Tables("dtCases").Rows
For Each rowDoc In rowCase.GetChildRows
("Casenme")
aDocs() = rowDoc.Table.Select
("doc_dte_due = '" & holdstr & "'")
Next rowDoc
Next rowCase
Next in the code I want to load a list box with the
selected records.
ListBox1.Items.Add(rowCase("case_id") & " " & rowDoc
("Document_nme"))
Casenme being the name of the relation object.
I have tried to find a example of this being done in
several books and in the ADO.net documentation. But the
only examples for example ppgs 340-341 in David Sceppa's
excellent ADO.net reference book, use only single tables
using string literals. I need to use a string variable.
Has anyone here encountered a similar problem ?
Thanks,
Gordon