Results 1 to 3 of 3

Thread: Error deleting with DAO

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Mobile, AL
    Posts
    16
    I am running a program that uses DAO to manipulate an Access database. I open the database and create a recordset. I seek for a record and delete it. Then I close the database. When deleting, I keep getting the following error:
    "Couldn't update; currently locked by user 'admin' on machine 'machine name'.

    I am doing something like this

    DBEngine.Idle dbRefreshCache

    QTable.Seek "=", stUniqueId
    If QTable.NoMatch = False Then
    QTable.Delete
    End If

    I update the database in other areas in this program and have had no problems until I added this delete.

    Any ideas what could be causing this error?

  2. #2
    Junior Member
    Join Date
    Feb 2000
    Posts
    20
    Did you using data env. or something else that hold the database? Coz i have the this kind of problem last time when i was using the data env.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Mobile, AL
    Posts
    16
    In case someone else has this problem. It is in a multiuser environment and I have to check if the recordset is updatable prior to deleting.

    Thanks anyway

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