Re: mydb.close
From: Sharrukin Amiri (sharrukin_at_amtekcenter.com)
Date: 05/18/04
- Previous message: Paul Clement: "Re: Using DAO with Access2003 database"
- In reply to: david epsom dot com dot au: "Re: mydb.close"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 18 May 2004 16:36:14 -0400
Thanks David...
"david epsom dot com dot au" <david@epsomdotcomdotau> wrote in message
news:40a88656$0$2300$61ce578d@news.syd.swiftdsl.com.au...
> You can keep querying the database as long as your
> database variable is true and valid.
>
> A97 Database connections do not time out.
>
> If you use the close method of a database object,
> that will close the connection.
>
> Or, if you do not use the close method, the DAO
> database engine will maintain a count of open
> references to the file, and will close the file
> when the reference count drops to zero.
>
> Open recordsets also maintain a reference to the file.
>
> Reference counts are decremented when you Close a
> Recordset, or it goes out of scope, or you set the
> recordset variable to 'nothing', or when you
> set a database variable to 'nothing' or when it
> goes out of scope.
>
> If you have more than one connection, and you close
> one connection, the file will remain open, and the
> other connection will remain valid, but the connection
> you closed will be gone.
>
>
> "Sharrukin Amiri" <sharrukin@amtekcenter.com> wrote in message
> news:_pSoc.31062$dr1.814154@news20.bellglobal.com...
> > Hello,
> >
> > When I open a connection to a local MS Access 97 Database using DAO,
would
> I
> > need to close the connection after doing what ever I need to do with the
> > records within a table. If I do not close the connection, can I keep
> > querying the database. Is there a timeout on the opened connection?
> >
> > Thanks!
> >
> > Sharrukin
> > sharrukin@amtekcenter.com
> >
> >
>
>
- Previous message: Paul Clement: "Re: Using DAO with Access2003 database"
- In reply to: david epsom dot com dot au: "Re: mydb.close"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|