|
-
Feb 17th, 2004, 01:49 AM
#1
Thread Starter
Fanatic Member
multiple conn? ( resolved)
can i open another connection within an open close conn?
Last edited by Goh; Feb 17th, 2004 at 02:49 AM.
-
Feb 17th, 2004, 02:03 AM
#2
Reuse a closed connection? Yup you can, just change whatever property needs to be changed and .Open the connection.
-
Feb 17th, 2004, 02:03 AM
#3
PowerPoster
Re: multiple conn?
Originally posted by Goh
can i open another connection within an open close conn?
What do you mean by a open close conn?
-
Feb 17th, 2004, 02:37 AM
#4
Thread Starter
Fanatic Member
wat i mean is within an open conn1(load_form) and close conn1(unload_form) ,in between i open a new conn2 ..is it ok?
-
Feb 17th, 2004, 02:38 AM
#5
Thread Starter
Fanatic Member
or can i reopen a conn (conn1) that is yet to close..?
-
Feb 17th, 2004, 02:44 AM
#6
Close it first before reopening
-
Feb 17th, 2004, 02:51 AM
#7
Thread Starter
Fanatic Member
then can i : open conn1(load_form) and close conn1(unload_form) in between i open a new conn2 ..is it ok?
ie. 2 different conns..
-
Feb 17th, 2004, 02:58 AM
#8
if its 2 different connection objects then you can close open them independent of the status of the other.
-
Feb 17th, 2004, 08:33 AM
#9
There is no need for your connection to be constantly open.
Open it, use it, then close it.
In fact your recordsets, you don't even need a connection object.
VB Code:
Private Const CONN_STRING As String = 'your conn string to your DB
Dim adoRec As Recordset
Set adoRec = New Recordset
With adoRec
.Open "SELECT * FROM Users", CONN_STRING
'blah blah blah
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
|