K
Kursat
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.
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.