gopikrish
asked on
Problem in Set cn = New Connection
Sorry I am just a beginner to vb and I am using vb 6 Enterprise edition.
When I do,
Public cn As Connection
Private Sub cmdLogin_Click()
Set cn = New Connection
So as soon as I type the word "New" in the above statement a list is appearing having word "Collection" but its not having "Connection". But iam having a project done by my friend and when I checked the same it showed "Connection" in that pop up list. So what is the problem? Thanks.
When I do,
Public cn As Connection
Private Sub cmdLogin_Click()
Set cn = New Connection
So as soon as I type the word "New" in the above statement a list is appearing having word "Collection" but its not having "Connection". But iam having a project done by my friend and when I checked the same it showed "Connection" in that pop up list. So what is the problem? Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow thanks ampapa you are right :)
Glad I could help.
Public cn As ADODB.Connection
...
Set cn = New ADODB.Connection
etc.
For what it's worth...