Working with access and typed data set
- From: "Kursat" <xx@xxxxxx>
- Date: Thu, 11 Jun 2009 22:25:49 +0300
Hi,
I have experienced a strange erro while using with Access 2007. Here is the
problem :
I have a simple table with a AutoIncrement field as primary key and two text
fields.
I generate typed dataset at visual studio by using datasource wizard. It
asked me to include the access file into the project and I said yes. when I
look the project's folder I see the access file copied to the project's
folder and debug folder.
I created an insert query by using visual datasource editor and name the
function as "create (string, string)". It takes two string parameters mapped
to two text field on the table.
I wrote the code that inserts some rows to the table like this :
UsersTableAdapter adp = new UsersTableAdapter();
usersadp.create (txtUserName.Text, txtPassword.Text);
After tihs when I check the access file in the project folder I can't see
any row inserted but the file in the debug folder contains inserted rows.
OK, nevermind but after some arbitrary period I activate the access and see
a messagebox saying invalid bookmark. After this all inserted rows
disappeared permanently.
I cannot figure out the problem, please help me if you have an idea.
Thanks in advance.
.
- Follow-Ups:
- Re: Working with access and typed data set
- From: William Vaughn MVP
- Re: Working with access and typed data set
- Prev by Date: RE: DataColumn.Min/MaxLength
- Next by Date: Re: DataColumn.Min/MaxLength
- Previous by thread: DataColumn.Min/MaxLength
- Next by thread: Re: Working with access and typed data set
- Index(es):
Relevant Pages
|