Table mapping error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    #1

    Table mapping error

    Hi

    I am trying to store data returned form a web service into a local access
    table. The problem is that I am getting an "Update unable to find
    TableMapping['Table'] or DataTable 'Table'" error on the line indicated
    below. What is the problem and how can I fix it?

    Thanks

    Regards

    Dim ws As New localhost.Staff Diary
    Dim ds = ws.GetStaffDiar y
    Dim da As OleDbDataAdapte r = New OleDbDataAdapte r("select * from [Local
    table]", conn)
    Dim cb As OleDbCommandBui lder = New OleDbCommandBui lder(da)

    da.InsertComman d = cb.GetInsertCom mand()
    da.Update(ds) '<=== This lines comes up with the error.


Working...