2,892 questions
Hello @Sheelnath Kekre
Although your question is too broad to provide one solution you can take a look at my GitHub repository on Microsoft Access. The repository projects were created in VS2017 and will work with VS2019. There are 42 projects in this repository and yet does not cover all the bases needed but does provide enough code to make an informed decision on how to proceed.
Here are some questions that would help fine tune what you are looking for
- Do you have a decent understanding for creating a relational database in MS-Access? It's rare to have one table to store data while multiple related tables are common. To get an idea for designing a database which is database agnostic see the following page.
- There are a handful of paths to take for interacting with data e.g. DataAdapter, connection/command objects, Entity Framework Core using the following provider or TableAdapter (will at first appear easy but unless you take time to understand them they will bite you at some point). Have you tried any of them out
- Are you looking for a all encompassing code sample project? If so there are really not any out there, especially for VB.NET, instead take the time to studying code samples such as the one I pointed too.
- Have (if a needed) considered securing your database?
- Have you considered not using MS-Access and using SQL-Server Express edition (which is free and a more robust database which offer more than MS-Access)?
Notes
- What is considered bad practice is to place data operation code directly in a form.
- A DataAdapter with one or more INNER JOIN when calling the adapter update method will not work properly without extra code to inform a value from a child table has changed (usually this is a key into a reference table).
- A Connection should be created, open and closed as needed rather than one private connection object in your data class