بسم الله الر حمن الر حيم
To connect to data in an Access database with the Add New Data Source command:
1. On the Data menu, click Add New Data Source.
2. Select on the Choose a Data Source Type page.
3. Select New Connection to create a new data connection.
4. The default provider is .NET Framework Provider for OLE DB.
5. In the file name box, enter the path to the .mdb file, or click the Browse button to locate the database file.
6. Enter login information if required by your database.
7. Click OK, and then click Next.
8. Select Yes to copy the .mdb file into your project, or No to connect to the database file in its current location.
9. Click Next.
10. Expand the tree of objects, and select the database objects to use in your application.
11. Replace the default DataSet name if desired.
12. Click Finish.
The dataset you just created is now available in the Data Sources window. Open the Data Sources window by selecting Show Data Sources from the Data menu.
To connect to data in an Access database with the Add Existing Item command:
1. Select Add Existing Item from the Project menu, or drag the .mdb file from Windows onto Solution Explorer.
2. Expand the tree of objects, and select the database objects to use in your application.
3. Replace the default DataSet name if desired.
4. Click Finish.
The dataset you just created is now available in the Data Sources window. Open the Data Sources window by selecting Show Data Sources from the Data menu.
Alhamdulillah,semoga bermanfaat,,,





