User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 427,488 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,404 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 4210 | Replies: 2
Reply
Join Date: Apr 2004
Posts: 1
Reputation: ZoilaResendiz is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ZoilaResendiz ZoilaResendiz is offline Offline
Newbie Poster

New key word not recoginized in VB6 connecting to Access

  #1  
Apr 13th, 2004
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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2003
Location: Fargo, ND
Posts: 301
Reputation: big_k105 is an unknown quantity at this point 
Rep Power: 6
Solved Threads: 2
Colleague
big_k105's Avatar
big_k105 big_k105 is offline Offline
PFO Founder

Re: New key word not recoginized in VB6 connecting to Access

  #2  
Apr 13th, 2004
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
Reply With Quote  
Join Date: Apr 2004
Location: minneapolis, mn
Posts: 35
Reputation: BlackDice is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
BlackDice's Avatar
BlackDice BlackDice is offline Offline
Light Poster

Re: New key word not recoginized in VB6 connecting to Access

  #3  
Apr 28th, 2004
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
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum

All times are GMT -4. The time now is 6:56 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC