Connecting to a access database

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Mar 2009
Posts: 2
Reputation: georgeajcka2009 is an unknown quantity at this point 
Solved Threads: 0
georgeajcka2009 georgeajcka2009 is offline Offline
Newbie Poster

Connecting to a access database

 
0
  #1
Mar 17th, 2009
Dear Sir,

Let me know how to connect a access database in Visual basic 6.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,134
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: Connecting to a access database

 
0
  #2
Mar 17th, 2009
if you are looking for the connection string please find it here.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 489
Reputation: abu taher is an unknown quantity at this point 
Solved Threads: 25
abu taher's Avatar
abu taher abu taher is offline Offline
Posting Pro in Training

Re: Connecting to a access database

 
0
  #3
Mar 20th, 2009
you can do it very easily. just put a data control. in properties slelect connection type access (if you want to connect office 2000 or next version you need service pack 6). and select the location of file. and then in record source select the table.
I like sword. Attack or Defense.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 897
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 167
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: Connecting to a access database

 
0
  #4
Mar 20th, 2009
There is another way depending upon what version of VB you have.

Start new standard exe project
Goto vb's ide menu Add-Ins > select add-in manager.
Look for VB 6 Data Form Wizard, highlight > Look at frame in bottom right corner with caption Load Behavior > select Loaded/Unloaded so check mark displays in check box. > OK
VB IDE Menu Add-Ins > Data Form Wizard
Run through wizard selecting your access database via browse button on screen 3.
On next form enter the name of the form you want, the style, and the type. I would suggest to start off with the ADO Code unless this is the first time you have ever played with VB.

Actually I would suggest that you use each option with each type and save that as a test project for reference. Then you will have it for reference.

Good Luck
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 141
Reputation: jonifen is an unknown quantity at this point 
Solved Threads: 15
jonifen jonifen is offline Offline
Junior Poster

Re: Connecting to a access database

 
0
  #5
Mar 20th, 2009
Nice post vb5prgrmr - wish I had though of that when I started using access with vb6 lol

As for using Access, Comatose posted a sticky in the VB4/5/6 section about this very subject - http://www.daniweb.com/forums/thread41057.html

I think vb5prgrmr's idea would be easier if you're unsure what you're doing though!
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 2
Reputation: georgeajcka2009 is an unknown quantity at this point 
Solved Threads: 0
georgeajcka2009 georgeajcka2009 is offline Offline
Newbie Poster

Re: Connecting to a access database

 
0
  #6
Mar 21st, 2009
thanks
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC