Results 1 to 5 of 5

Thread: Update Fails (Access db)

Hybrid View

  1. #1
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Update Fails (Access db)

    So, what is the Select command and, more top the point, where is it? There are a lot of items here where you seem to take it on trust that that values will carry over from other subs. I'd be very surprised if you could get away with not creating a new Adapter at the very least.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jul 2012
    Posts
    79

    Re: Update Fails (Access db)

    Thanks for the quick reply.
    The select statement is:
    strSelect = "SELECT * FROM tblFinishes"
    daFinishes = New OleDb.OleDbDataAdapter(strSelect, con)
    daFinishes.Fill(dsFinishes, "tblFinishes")
    MaxRowsFinishes = dsFinishes.Tables("tblFinishes").Rows.Count

    Originally it was in a module but I moved it to the FormLoad event. This app currently has only one form.
    I have also used: "SELECT id, finish FROM tblFinishes" with the same error resulting. 'ID' is the primary key in the Access db. MaxRowsFinishes is used in the app. It always has the correct number of rows.

Tags for this Thread

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