Results 1 to 3 of 3
  1. #1
    Megabyte is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    2

    ADO -2147467259 error, but only after going to 'Design View'?

    Hi,

    My setup: ADO connection using adUseClient for the cursor location. Database is *not* split.


    I have a button (lets call it test) that connects to a database, and sends a simple query “selects * from myTable”, then closes the connection. I can click on this button as many times as I want without
    error or issues.


    The problem: The moment I switch my form to ‘Design View’ and back to ‘Form’ view I will receive error: -2147467259 (database placed in locked state by me).


    I can fix this by: Closing the form and reopening it in form View.



    I can even fix this by: Opening any table (even one Im not quering) and closing that table


    Thoughts?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    sounds like the ado connect still has a lock open.

  3. #3
    Megabyte is offline Novice
    Windows 10 Access 2016
    Join Date
    Sep 2019
    Posts
    2
    Interesting theory, but I just ran a test that ruled that one:

    1# I opened the form (without clicking on ADO, or connecting to anything ADO related)
    2# Changing to Design view
    3# Changing back to form view
    4# Clicking on the ADO test button for the first time andgetting the same error.

    It’s like the act of going into design view changes something. The moment I open up the database it makes a ‘laccdb’ file, but I'm still able to connect with ADO without issue (tested both select and insert). Seems everything works 100% fine, and only breaks once I enterdesign view then back into form view.

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

Similar Threads

  1. Replies: 19
    Last Post: 08-08-2024, 11:48 PM
  2. Email automation run-time error 2147467259
    By goestejs in forum Access
    Replies: 6
    Last Post: 06-19-2014, 02:00 PM
  3. Error opening unless in Design View
    By maryj in forum Reports
    Replies: 2
    Last Post: 02-20-2014, 10:44 AM
  4. Replies: 8
    Last Post: 04-29-2013, 11:23 AM
  5. Replies: 1
    Last Post: 07-31-2012, 02:03 PM

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
  •  
Other Forums: Microsoft Office Forums