Results 1 to 2 of 2

Thread: ADO Connection Puts Network Database In Read Only

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2010
    Posts
    18

    ADO Connection Puts Network Database In Read Only

    Hi All,

    I have an excel spreadsheet that is linked into an access database through ADO connections. The spreadsheet is set up to make updates and adds directly into a table in my database. The database is on a server, what is happening is, and I don't know the cause, the database is being put into read only mode and gets stuck in read only. There is no record locking database file that is getting created as well, which is usually what happens when you open a database.

    The connections when contacting the database are set to:
    Code:
    Conn1.Mode = adModeReadWrite
    and when it is done with either the update or add the connection is closed:
    Code:
    Conn1.Close
    Conn1.ConnectionString = ""
    Does anyone know how I can avoid my database getting locked up? Or is this jsut a server issue that may be causing it? Is there a way to avoid the server from causing this issue?

  2. #2
    Hyperactive Member
    Join Date
    May 2006
    Posts
    365

    Re: ADO Connection Puts Network Database In Read Only

    Hello,

    Destroy the connection object
    Code:
    conn1 = Nothing
    kind regards

    steve

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
  •  



Click Here to Expand Forum to Full Width