using System.Data.OleDb;
OleDbConnection con = new OleDbConnection();
con.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\Administrator\Desktop\database.mdb;Persist Security Info=False"
con.Open();
string command ="select eid from Inquiry_Table";
OleDbCommand cmd = new OleDbCommand(command, con);
OleDbDataReader dr = cmd.ExecuteReader();
while(dr.Read()==true)
{
cboempid.Items.Add(dr[0].ToString());
}
con.Close();
con.Dispose();
The above code will read the value from an access database and will add data into the combobox
create a notepad file and save it with the extention .udl open the file into the provider section select Microsoft.Jet.OLEDB.4.0 and then browse for the location of ur access file click on test connection and ur done to go and inorder to get the connection string performn the above steps and then open the udl file with notepad
rate my answer once u find it helpful
Thanks & Regards;
Radix.