It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Urgent Help!!How to Connect Microsoft Access Database to VB6

Moderator: dafunkymunky

Urgent Help!!How to Connect Microsoft Access Database to VB6

Postby Elagirly on Tue Jul 24, 2007 8:49 am

Hi..
Im a beginner in this forum. I badly needed help. I have created a seperate database using microsoft access and i wanted to connect it to the Sample program I have created using Visual Basic.

Im not familiar with the codes here in VB. :( Please help me in the simplest possible way. (laymen's term). Im as well a beginner in programming.

Hope for assistance the soonest.

Thanks :) :lol:
Elagirly
 
Posts: 0
Joined: Tue Jul 24, 2007 8:23 am

Postby jeranio on Thu Sep 20, 2007 6:28 pm

Hi I was having same problem . Try this

Dim dbMain As Database (this declares variable to hold DB)

Set dbMain = OpenDatabase("rent.mdb") (this actually opens DB)

Set RSJobCards = dbMain.OpenRecordset("jobcards", dbOpenDynaset) This will open the "jobcards" table in database called RENT.MDB

If you have no joy email me at jeranio@iburst.co.za
ALSO LEARNING BUT QUICK
jeranio
 
Posts: 4
Joined: Thu Sep 20, 2007 6:16 pm


Who is online

Users browsing this forum: No registered users and 3 guests