Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 17th, 2006, 07:22 AM
darren_1084 darren_1084 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 15 darren_1084 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 31 m 22 sec
Reputation Power: 0
Connection problem

im using vb to connect to microsoft access. but when i run the program, it say
compile error: invalid use of new keyword.

and it also highlight this word "New Connection" from the below statement

Set db = New Connection
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\..\ES Project\PersonalitySysRule.mdb;Persist Security Info=False"

how to fix the problem?
thanks

Reply With Quote
  #2  
Old March 17th, 2006, 09:10 AM
sync_or_swim's Avatar
sync_or_swim sync_or_swim is offline
Moderator
Click here for more information.
 
Join Date: Mar 2006
Location: South Wales
Posts: 1,842 sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level)sync_or_swim User rank is General 3rd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 5 Days 2 h 44 m 7 sec
Reputation Power: 1142
It should read:
Code:
Set db = New ADODB.Connection
db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\..\ES Project\PersonalitySysRule.mdb;Persist Security Info=False" 

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Connection problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT