Big Boabby
Member
Hi guys,
I am just looking into .net (i usually use VB6). I understand that I need to use a data adapter to link to the database so that I can fill the dataset and bind the controls.
I am trying to connect to an Access XP database. This is a simple test.mdb with a single table(Names) with Key, NameIn and Message as the fields. I place the adapter on the form, and the data adapter configuration wizard starts. I select Jet 4.0 oledb provider and enter the path, click test connection and it succeeds.
Next, I am asked what I want to use to fill the data set, I only have the option of SQL so I click next and, using the query builder, I try a simple SELECT Names.* FROM Names but when I run the query I get an unspecified error.
When I click next I get:
The wizard detected the following problems when configuring the data adapter "OleDbDataAdapter1"
Details:
General SELECT statement
Unspecified Error : E_Fail(0x80004005)
I have tried to look for this in MSDN but so far have not found any helpful tips - can anyone help?
I am just looking into .net (i usually use VB6). I understand that I need to use a data adapter to link to the database so that I can fill the dataset and bind the controls.
I am trying to connect to an Access XP database. This is a simple test.mdb with a single table(Names) with Key, NameIn and Message as the fields. I place the adapter on the form, and the data adapter configuration wizard starts. I select Jet 4.0 oledb provider and enter the path, click test connection and it succeeds.
Next, I am asked what I want to use to fill the data set, I only have the option of SQL so I click next and, using the query builder, I try a simple SELECT Names.* FROM Names but when I run the query I get an unspecified error.
When I click next I get:
The wizard detected the following problems when configuring the data adapter "OleDbDataAdapter1"
Details:
General SELECT statement
Unspecified Error : E_Fail(0x80004005)
I have tried to look for this in MSDN but so far have not found any helpful tips - can anyone help?