Results 1 to 16 of 16

Thread: [RESOLVED] [2008] MDB not updating with da.update

Threaded View

  1. #13

    Thread Starter
    Member
    Join Date
    Nov 2007
    Posts
    62

    Re: [2008] MDB not updating with da.update

    I fixed it..had to be sql = "SELECT SetID, Filename, [Size] FROM Files ORDER BY SetID, Filename, [Size] DESC"

    But now I get: No value given for one or more required parameters.

    Why can't this just work?

    Code:
            con.ConnectionString = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=" & OpenFileDialog1.FileName
            con.Open()
            sql = "SELECT * FROM Files ORDER BY SetID, Filename, [Size] DESC"
            da = New OleDb.OleDbDataAdapter(sql, con)
            da.Fill(dt)
            con.Close()
    Last edited by rhijaen; Sep 29th, 2008 at 10:12 PM.

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