use OleDbConnection rather than SqlConnection...
here's a sample to get you started (In C# though):
OleDbConnection myConn = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0; Data Source=C:\\myTest.mdb");
myConn.Open();
OleDbDataAdapter adapter= new OleDbDataAdapter("SELECT * FROM Table1", myConn);
DataSet ds = new DataSet();
adapter.Fill(ds, "Table1");
// Access the table From here...
cheers,
Paul June A. Domag
Here's a couple topics on connecting to an Access database:
http://msdn2.microsoft.com/library/cf131f6b(en-us,vs.80).aspx
http://msdn2.microsoft.com/library/ms171893(en-us,vs.80).aspx Hope that helps...
After you establish your connection you can check out this section of topics that show how to display the data on a Windows Form:
http://msdn2.microsoft.com/library/ms171923(en-us,vs.80).aspx
I think Steve's response and resources will help.
Note also that we're looking into beefing up our samples here over the next few months.
thanks,
Paul
I will go through the infomation and LEARN! I really like the Samples but could even use more that actually use real world situations. There are no plans in the future right now to migrate to SQL, so must be able to continue to use the Access Database.
Larry Gatlin
I've been trying the dataset and datatables etc, but get kinda lost. I just found out this morning that if you have a Combo box set for sorted, the databinding don't work. I do not do databinding in my vb6/ADO applications, but have dappeled a little trying to learn. That is how I have learned is trying and working with the infomation. That is why I am glad to see Edit and Continue return to VB.
Again thanks for the leads, I will follow them.
Larry Gatlin