Database

Search and Display the contents of Access database inside a VB Form

Contributor
Submitted by CAAadmin on Wed, 09/07/2016 - 05:24

You can display the contents of Access database inside a VB Form using DataGridView controls (from the tool box)

Steps

Add a textbox, a button and a data grid view

Double click on the form and add below codes (This code will search for textbox1.text value in database and display all tables inside datagrid view). Put the database (database.accdb) inside debug folder

In this example, assume there is a column called F2 inside table1 of database.accdb