Problem using DataTable and DataRow
I am having trouble using the DataTable and DataRow. On using the command
dt = DsMarriage1.Tables("Marriage")
it is giving the error "Value of type 'System.Data.DataTable' cannot be converted to '1-dimensional array of System.Data.DataTable' ". Marriage table is an access table and DsMarriage1 is the dataset. It is doing the same on using DataRow.
Re: Problem using DataTable and DataRow
Post more code, but it looks like the compiler is saying that dt is an array of DataTable instead of a single one.
Re: Problem using DataTable and DataRow
You didn't accedently declare your datatable with paranthesis? I've done that a couple of times, especially when first declaring it as NEW and changing it.
IE.:
VB Code:
Dim myDatatable as new datatable()
'then changing it to
dim myDatatable as datable()