Answer the question
In order to leave comments, you need to log in
Add record and save (data source)?
I connected the access database and displayed it like this.
OleDbConnection conn = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\Log.accdb");
OleDbDataAdapter da = new OleDbDataAdapter("SELECT * FROM log", conn);
DataSet ds = new DataSet();
da.Fill(ds, "log");
dataGrid.ItemsSource = ds.Tables["log"].DefaultView;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question