Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2011
    Posts
    20

    Post Database engine could not lock table issue

    Hi I Got the following error

    "The database engine could not lock table 'Table Name' because it is already in use by another person or process"
    i got the above error statment when i execute the following poece of code]


    Code:
    Private Sub Form_Load()
        CurrentDb.Execute "ALTER TABLE tbl_PaperTeam ALTER COLUMN ID COUNTER(1,1)"
       ME.AllowEdits=false

  2. #2
    pctech33 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    3
    Hi,

    make sure the table is not open. and try that..
    Sometimes when access tries to change the data in table and u try to ask it to do another process then it gives this error message.
    So make sure table is not open in datasheet view.
    hope this helps.

  3. #3
    Join Date
    Jun 2011
    Posts
    20

    Post Re:Database engine could not lock table issue

    Quote Originally Posted by pctech33 View Post
    Hi,

    make sure the table is not open. and try that..
    Sometimes when access tries to change the data in table and u try to ask it to do another process then it gives this error message.
    So make sure table is not open in datasheet view.
    hope this helps.
    Hi Thanks for ur reply.

    Im sure that the table is not opened when executing the code.i have assigned the Form as my project startup. Even its throwing that error.

    Can u give any other Suggestion.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 11
    Last Post: 07-17-2011, 08:56 PM
  2. Search engine result database suggestions
    By PIHA520 in forum Access
    Replies: 0
    Last Post: 05-29-2011, 05:44 PM
  3. Replies: 6
    Last Post: 10-30-2010, 08:42 AM
  4. Replies: 1
    Last Post: 06-23-2010, 10:52 AM
  5. Replies: 1
    Last Post: 03-02-2010, 03:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums