CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Posts
    13

    app is too fast ??? what is going on?

    Hello over there

    develop an app that add some contects to an access db using ADO.the problem is that is u press the save button too fast about 8-10 times u get an error that the "table is locked; could not update" and u get that error in different line evry time.
    what is going on??? can somebody clear things up?? read about RecordsetChangeComplete event of the recorset object can i use it to tell which table is locked how can i wait for that table to unlocked and the do next addition.I hope i didn't confuse u

    thnks




  2. #2
    Join Date
    Jul 2000
    Location
    Hawaii
    Posts
    281

    Re: app is too fast ??? what is going on?

    you are trying to call a server object (DB provider) before a previous call is returned

    the lock is a self protective device of the server object

    - reentrancy is also a problem on your client end

    either stop clicking or place a boolean flag that will not allow you to make the call (i.e. Exit Sub) until after the first call returns (when you reset the flag)


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

Featured