Hi all,
I would appreciate any help on this matter. I have created an ADO connection to a .DBF visual FoxPro DB in my MDI app in VB6. I can access data from this DB and update any data successfully.
However, I need to run another app within my MDI app that needs to access this .DBF DB. So, before launching this app, I make sure that the ADO connection is closed and I also set the connection object to "Nothing". According to
VB help, this is sufficient to release the hold on the DB file. Unfortunately, the other app still reports that the file is in used, so it cannot gain access to it. To make it short, the other app is doing a backup of that DB, and it needs to get hold of the .DBF file.
Do you have any thoughts on why this happens? I would appreciate any help on how to resolve this. I'm nearing the end of the project, and need to resolve this issue soon.
Thank you very much for all your help.
Khoi.
PS: Below is my code to close the connection:
tblSetupDBF.Close
setupDBFConn.Close
'Really free up the connection
Set setupDBFConn = Nothing
It shouldn't be very complicated at all, at least that's what I thought.
Khoi Nguyen