| | |
How to read MS-Access database tables?
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2007
Posts: 58
Reputation:
Solved Threads: 2
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
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
•
•
Join Date: Mar 2009
Posts: 865
Reputation:
Solved Threads: 157
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
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
Thanks
![]() |
Similar Threads
- Inserting,deleting,updating and editing records to a MS Access database (C#)
- Reading data from an access database (C#)
- how to convert sql server database to access database (MS SQL)
- update access database (C#)
- Create Access Database using SQL queries (MS Access and FileMaker Pro)
- Reading an Access Database (VB.NET)
- Maximum no. of tables in MS Access Database ? (Visual Basic 4 / 5 / 6)
- JSP access to MS Database. (JSP)
- Accessing an Access Database using Java (Java)
- Create an Access Database using Java (Java)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to click a 'show more' label with vb which has a embedded java script
- Next Thread: Custom Message Box
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





