Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COMPLETELY CLOSING AN MDB CONNECTION

Status
Not open for further replies.

sebpas

IS-IT--Management
Mar 30, 2001
39
CA
I'm trying to completely close an mdb file that was open previously in the same application using ADO. I do a close on it and set xx=nothing but i still see the ldb file present, meaning that the file is still open by the program.
Is there a way to close it completely without terminating the program? I want to be able to compress the mdb even if people have done transaction on it in the same session.
Any help will be very appreciated.
 
dear sebpas,

maybe you dim your ado like this:

dim adocon as new adodb.connection

if so try this:

dim adocon as adodb.connection
set adocon = new adodb.connection



HTH

regards Astrid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top