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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

public ADO Connection 1

Status
Not open for further replies.

XTnCIS

Programmer
Apr 23, 2002
57
US
This may be simple (I hope) but I'm missing something:

I want to create an ADO connection in code that I can reference/use from other Procedures or Functions.

Right now I can get the connection but when the Procedure ends, the connection can no longer be referenced.

My hunch is that I have to somehow tell the code that the connection is Public?

Any body have experience here?
 
try putting i.e declaring the connection as global or public
in a standard code module.

Global g_Conn As ADODB.Connection
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top