How to read MS-Access database tables?

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

Join Date: Nov 2007
Posts: 58
Reputation: guest11 is an unknown quantity at this point 
Solved Threads: 2
guest11 guest11 is offline Offline
Junior Poster in Training

How to read MS-Access database tables?

 
0
  #1
Jun 22nd, 2009
hi all,

I want to read MS-Access database tables through VB.

I try for reading excel file and i got success in reading excel file by adding reference microsoft execel library .

But i am facing problem in reading access file.
I had added the reference microsoft access library but then also i am not able to read access file.

Can anybody help me in solving my problem?

Thanks in advance.

Regards
Guest11
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 865
Reputation: vb5prgrmr will become famous soon enough vb5prgrmr will become famous soon enough 
Solved Threads: 157
vb5prgrmr vb5prgrmr is offline Offline
Practically a Posting Shark

Re: How to read MS-Access database tables?

 
0
  #2
Jun 22nd, 2009
Well with VB you need to have the correct library installed. i.e. for an office 97 access datbase you would need to have office 97 installed with the method you are trying to use. On the other hand if you use DAO, RDO, or ADO, more often than not the drivers to access most data sources come with the OS.

Now if you have Pro or Enterprise VB6 you should be able to use the Data Form Wizard.

Start new standard exe project>VB's IDE menu Add-Ins>Add In Manager>select VB 6 Data Form Wizard>In frame at lower right corner with caption of load behavior select Loaded/Unloaded so there is a check in the box.

Add-Ins>Data Form Wizard

Follow the instruction and use this wizard enough times to make sure that you have a form for each code/class/control and form type combination.

Save this project for future reference and to view any of the form or walk through with F8, set that form up as your startup form or modify Form1 so you can select any form you want to walk through with F8.

Good Luck
If anyone has helped you solve your problem, please mark your thread as solved.

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:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC