|
-
Apr 15th, 2005, 03:56 AM
#1
Thread Starter
Lively Member
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.
-
Apr 15th, 2005, 08:32 AM
#2
Addicted Member
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.
There are no stupid questions, but a whole bunch of dumb sayings !
Save time on database code, try DataLG !
-
Apr 15th, 2005, 03:27 PM
#3
Junior Member
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()
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|