Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,294 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,393 people online right now. Registration is fast and FREE... Join Now!




connecting microsoft access database to visual basic

 
Reply to this topicStart new topic

connecting microsoft access database to visual basic, connect ms access database to visual basic an alter the contents of da

vikas1111
20 Feb, 2008 - 04:57 AM
Post #1

New D.I.C Head
*

Joined: 20 Feb, 2008
Posts: 2

I want to connect microsoft access database to visual basic adodc.. Can any one help me out ??
User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Connecting Microsoft Access Database To Visual Basic
20 Feb, 2008 - 05:06 AM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,983



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks smile.gif
User is offlineProfile CardPM
+Quote Post

tundsam
RE: Connecting Microsoft Access Database To Visual Basic
20 Feb, 2008 - 11:36 AM
Post #3

New D.I.C Head
*

Joined: 28 Jan, 2008
Posts: 2

QUOTE(vikas1111 @ 20 Feb, 2008 - 05:57 AM) *

I want to connect microsoft access database to visual basic adodc.. Can any one help me out ??


Good day. you can use the connection string to connect your visual basic application to your database, by adodc.
User is offlineProfile CardPM
+Quote Post

rbgranados
RE: Connecting Microsoft Access Database To Visual Basic
19 Mar, 2008 - 06:36 PM
Post #4

New D.I.C Head
*

Joined: 23 Dec, 2007
Posts: 1

QUOTE(vikas1111 @ 20 Feb, 2008 - 05:57 AM) *

I want to connect microsoft access database to visual basic adodc.. Can any one help me out ??

if you have any problems in visual basic just email me @ {Removed}. i dont want to spearhead the public. thanks.

This post has been edited by PsychoCoder: 19 Mar, 2008 - 06:57 PM
User is offlineProfile CardPM
+Quote Post

eaglebeef
RE: Connecting Microsoft Access Database To Visual Basic
28 Apr, 2008 - 05:35 AM
Post #5

New D.I.C Head
*

Joined: 28 Apr, 2008
Posts: 4

sweet
User is offlineProfile CardPM
+Quote Post

skorned
RE: Connecting Microsoft Access Database To Visual Basic
30 Aug, 2008 - 10:24 AM
Post #6

New D.I.C Head
*

Joined: 30 Aug, 2008
Posts: 1

I have a similar difficulty. I learnt VB 6 in school where data handling was very easy with the recordset. However, i have decided to do my coursework in vb 2008, but they aren't teaching it, so i must figure out how to handle data in vb 2008.
I got this connection string from connectionstrings.com, and tried to write some commands of my own. Btw, i'm trying to link to a database in the access 2003 format, with a table called classes.
Is this method for connecting correct? is there any method simpler than sql, as my project is very basic and it would help if i didnt have to write such complex programming. And plus, how do i navigate records? like in vb 6 it would be something like booksdat.recordset.next....

CODE

Dim myConnection As SqlConnection
        Dim insert As SqlCommand
        Dim delete As SqlCommand

        myConnection = New SqlConnection(Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\vb08sbs\chap18\students.mdb;Persist Security Info=False;)
        insert = New SqlCommand("INSERT INTO Classes (Class Name, Department, Prof, Section Number, Term, Units, Year, Location, Days/Times) values ('Test Class', 'Computer Science', 'Satra, Neil', 3, 'Fall', 98, 102, 'MWF 8:00')", myConnection)
        delete = New SqlCommand("DELETE FROM Classes WHERE Class Name = 'Test Class'", myConnection)

User is offlineProfile CardPM
+Quote Post

thava
RE: Connecting Microsoft Access Database To Visual Basic
1 Sep, 2008 - 03:51 PM
Post #7

D.I.C Regular
Group Icon

Joined: 17 Apr, 2007
Posts: 442



Thanked: 18 times
Dream Kudos: 50
My Contributions
try the xsd item or try in .net forum

This post has been edited by thava: 1 Sep, 2008 - 03:53 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 05:58AM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month