Results 1 to 3 of 3

Thread: Problem using DataTable and DataRow

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2004
    Posts
    120

    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.

  2. #2
    Addicted Member
    Join Date
    Jan 2005
    Location
    Montréal
    Posts
    160

    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 !

  3. #3
    Junior Member
    Join Date
    Apr 2005
    Posts
    31

    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:
    1. Dim myDatatable as new datatable()
    2.  
    3. 'then changing it to
    4.  
    5. 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
  •  



Click Here to Expand Forum to Full Width