Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

asked on

Data Control connection to SQL in VB6

I have never used the data control in VB6.  I am trying to make my form function just like MS Access so a person can scroll thru their records and make adjustments easily.  The problem is I don't know how to connect to my database since I use a remote SQL database.  How would I connect using this control?

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of al4629740

ASKER

I added it to my computer but that didn't work once I looked in the Connect field of VB6.  Am I suppose to do this within the VB6 editor?  I don't know where to look.
I think I found it.  I had to the Data Environment under Components.  The only question is which one of these OLE DB Providers do I choose to connect to an MS SQL Server?


User generated image

Ok I chose OLE DB for SQL Server