January 13th, 2009, 02:34 AM
connect MS access DB oleDB problem
Hi again, I'm having trouble whilst connecting a MS access db using oleDB
Problem is with getting more than one column added into a listbox in my application from the DB
here's the code so far
OleDbConnection Conn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Users\\Scott\\Documents\\Menu.accdb");
OleDbDataAdapter da = new OleDbDataAdapter(
"Select * from Menu", Conn);
DataSet ds = new DataSet();
DataTable dt = ds.Tables;
foreach (DataRow dr in dt.Rows)
I just can't find a way to get the second column added ?
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!