|
-
Mar 21st, 2002, 11:50 AM
#1
Thread Starter
Addicted Member
how to close all available database connection
i would like to know what command or source code is needed to close all available database connection in an aplication. pls help
"If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"
-
Mar 21st, 2002, 11:54 AM
#2
Code:
'DAO
dbobject.Close
'ADO
connobject.Close
-
Mar 21st, 2002, 12:38 PM
#3
Thread Starter
Addicted Member
thanks for ur help. but the code wont help if i wanted to close connection from other forms which the variable is not global. is there any command which i can use to close all connection from other forms.help is really needed
"If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"
-
Mar 21st, 2002, 07:44 PM
#4
If it is your project, and your objects, they should be available.
Either make the public, and close them all at once, or make them form level, and close them when the form unloads.
-
Mar 22nd, 2002, 10:32 AM
#5
Thread Starter
Addicted Member
When the form unloads, what function will it triggers?
I mean...how do I set that whenever a form unloads....it will close the connection?
"If ignorance is bliss, that probably explain why I'm in a such a mess right now!!"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|