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

Possible for 2 connection at the same time?

Status
Not open for further replies.

beautieee

Programmer
Oct 4, 2008
46
MY
Is that possible to create 2 connection at the same time?

Tried but failed. Seeking for help and advise.

Thank you very much.

Regards,
Beautieee
 

Are you talking about 2 connections to the same database (if so, why?) or connections to, let's say Oracle and SQL?


Have fun.

---- Andy
 
Connection to what? Database, serial port, USB port, printer, network, etc...?

Post your code. Tell us exactly what error message you got, and on what line.

Joe Schwarz
Custom Software Developer
 
Thank you for your reply.

Im trying to create 2 database connection from 2 different database or server.

I had another test and it worked.

Regards,
Beautieee.
 
Problem Resolved:

In the Form_Load event of the first form I put this code:
Code:
If App.PrevInstance = True Then
    MsgBox "This program is already running!", vbCritical, "All Ready Loaded Error"
    End
End If
Thanks to everone for their help.
 
Sorry, I posted the above under the wrong thread.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top