Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 19th, 2004, 11:07 PM
aforezli aforezli is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: Calgary
Posts: 5 aforezli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 44 sec
Reputation Power: 0
Exclamation Manually coding a connection to MS Access.

I am writing an application that retrieves and updates data
in an MS Access Database.
I do not want to use the data wizard or drag the components
onto the designer and use the wizards because I must use a variety
of SQL statements to retrieve specific information from the same table.

I have Microsoft Visual Studio.Net 2003 installed on my laptop.
When I try to declare a connection as New OleDbConnection() it says that
OleDbConnection is undefined.

I do not understand this.
Could someone please give me the steps from start to finish on how to connect in code, create
the dataset, data tables, etc. and access the records in the database tables.

I'm confused.
-Newbie

Reply With Quote
  #2  
Old April 20th, 2004, 04:33 PM
pmuk pmuk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Location: USA
Posts: 21 pmuk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile Mannually coding a connection to MS Access


Reply With Quote
  #3  
Old May 6th, 2004, 09:56 AM
nmckenzie nmckenzie is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 nmckenzie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Cool Accessing Data with ADO.NET

Good Reference:

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/cpguide/html/cpconaccessingdatawithadonet.htm

Reply With Quote
  #4  
Old May 7th, 2004, 04:35 AM
majk majk is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 3 majk User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
try importing --> System.Data.OleDb
It's where OleDBConnection() is defined.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Manually coding a connection to MS Access.


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 1 hosted by Hostway
Stay green...Green IT