Advertisement

07.07.2008 at 10:40AM PDT, ID: 23544104
[x]
Attachment Details

Cant get data from access database into vb.net 2003 datgrid

Asked by Dov_B in Microsoft Visual Basic.Net, Microsoft Access Database, Visual Studio .NET 2003

I am trying to get data from an access database into a datagrid in vb.net 2003
I get the following error message
an unhandled exception of type system.ArgumentException occured in the windows.system.forms.dll
additional information: cannot create child list for field.eng I have attached the code I used for connecting to the databaseStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        constring = "Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\Documents and Settings\NaomiB\My Documents\db1.mdb;Uid=Admin;Pwd=;"
        Dim theodbcCommand As New OdbcCommand("select * from t1", New OdbcConnection(constring))
        Dim thedataset As New DataSet
        Dim thedataadapter As New OdbcDataAdapter(theodbcCommand)
        thedataadapter.Fill(thedataset)
        DataGrid1.DataSource = thedataset
        DataGrid1.DataMember = "eng"
    End Sub
[+][-]07.07.2008 at 11:07AM PDT, ID: 21947247

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual Basic.Net, Microsoft Access Database, Visual Studio .NET 2003
Sign Up Now!
Solution Provided By: FernandoSoto
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.07.2008 at 11:10AM PDT, ID: 21947272

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.07.2008 at 11:27AM PDT, ID: 21947397

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 11:41AM PDT, ID: 21947487

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 11:43AM PDT, ID: 21947497

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 11:50AM PDT, ID: 21947543

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 12:08PM PDT, ID: 21947698

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 12:15PM PDT, ID: 21947764

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 12:23PM PDT, ID: 21947837

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 12:29PM PDT, ID: 21947878

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 12:33PM PDT, ID: 21947914

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 12:38PM PDT, ID: 21947964

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628