

VB NET 2010 GET FIRST ROW OF DATASET CODE
Code To Connect Access Database in VB.Netĭouble the “Form1” and add the following code under “Public Class Form1”. In this final step, we will now start adding functionality to our vb.net program by adding some functional codes. To test the connection, click the “Test Connection” button, finally click “OK” button at the side of the “Cancel” button.Ĭopy the connection string so that we can use this in our next step. įirst, click Browse Button then, Select “ inventorydb.accdb”, Lastly, Click Open. On the menu, click data and select “Add new Data Source.” Ĭlick new Connection then, Select Microsoft AccessDatabase file and, Click Continue. To design the form, you need to follow the image below.

Open Visual Studio and Create a Visual Basic Application project and Save it as “connectvbaccess”.

follow the sample records in the image below. To create a table, follow the image below and save it as “tblitems”.Īdd sample records in the table. Open an MS Access Database in your Computer and Create a Blank Database and Save it as “inventorydb.accdb”.
VB NET 2010 GET FIRST ROW OF DATASET HOW TO
Steps How to Connect Access Database in VB.Net
