DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Visual Basic 4 / 5 / 6 (http://www.daniweb.com/forums/forum4.html)
-   -   New key word not recoginized in VB6 connecting to Access (http://www.daniweb.com/forums/thread5252.html)

ZoilaResendiz Apr 13th, 2004 3:13 pm
New key word not recoginized in VB6 connecting to Access
 
Hi,

I am trying to connect to a Microsoft Access DB using VB6, when I create a new connection I Dim DB as Connection, then Set db = New Connection. When the program is ran the complier doesn't recognize the word 'New'. Is there a link I can go to in order to research more about ODBC in order to connect to a Microsoft Access db using VB6. I am trying to look for the correct syntax in order to connect to the DB.

Any help would be appreciated.

Thank You,
Zoila

big_k105 Apr 13th, 2004 4:00 pm
Re: New key word not recoginized in VB6 connecting to Access
 
first take alook at this thread and it should help you out
http://daniweb.com/techtalkforums/showthread.php?t=272

and if you need alittle more info come on back or do a quick little google search on ODBC Access VB6 hope this helps

BlackDice Apr 28th, 2004 5:17 pm
Re: New key word not recoginized in VB6 connecting to Access
 
I think that's probably a problem with your references. Go to Project->References and look at your references, it should tell you if something is missing. and if you're using ado, make sure you're using adodb.connection


All times are GMT -4. The time now is 3:43 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC