Connecting to access database using code
问题 I am a student How to connect to access database using code ( not using wizard) and retrive values in the textbox in c# using visual studio 2008. I have to extract 3 fields from the access database. Do anybody know. Pl help. 回答1: OleDbConnection is the standard class to query an Access database. Here's an example. 回答2: Start by reading up on ADO.NET and then use the OleDb Data Provider. Once you have the values it should be trivial to put them into a text box. Here is a good ADO.NET tutorial: