Recordset error "too many transactions"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #16
    Yes, I believe so.

    There is also something called a batchupdate, but I can't remember how exactly that works at the moment.

    Comment

    • reginaldmerritt
      New Member
      • Nov 2006
      • 201

      #17
      Live an learn. I'll make sure i add .update from now on.

      Sorry we went all around the houses there.

      Comment

      • TheSmileyCoder
        Recognized Expert Moderator Top Contributor
        • Dec 2009
        • 2322

        #18
        Not your fault :P Just glad you found a solution to your problem.

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32633

          #19
          Originally posted by reginaldmerritt
          Does this need to be done every time a recordset is edited?
          Yes.

          Both rs.New & rs.Edit put the database into an edit and therefore create a transaction. This is only closed (submitted to the database) when rs.Update is called. Many changes can be made between the two lines, but none is committed (saved) until the rs.Update tells it to.

          In the mean-time, Access needs to keep a record of all the proposed changes. You can imagine how this could build up in your process if the rs.Update is never called.

          I suggest a quick read of the relevant Help page (click on the .Edit line and press F1) would considerably help your understanding. They explain it better than I can.

          Comment

          Working...