Hi,
I am using the addnew funtion associated with a recordset object to add data to a Table in my database...
The table has an ID field which of the type auto number
so each new record added is supposed to be added at the end of the table.
However this is not happening..Instead each new record is being given the same ID value and overwriting the record that already had that ID value..ie.When I add a new record
which should be given an ID of 20( Next value of autoincrement) but instead it is being given the value of the first record in the database in my case 2 and inserting this new record into position 2 in the table..overwriting what was originally there..
Has this ever happened to anyone before and idf so please reveal how you fixed it..
thanks in advance
I am using the addnew funtion associated with a recordset object to add data to a Table in my database...
The table has an ID field which of the type auto number
so each new record added is supposed to be added at the end of the table.
However this is not happening..Instead each new record is being given the same ID value and overwriting the record that already had that ID value..ie.When I add a new record
which should be given an ID of 20( Next value of autoincrement) but instead it is being given the value of the first record in the database in my case 2 and inserting this new record into position 2 in the table..overwriting what was originally there..
Has this ever happened to anyone before and idf so please reveal how you fixed it..
thanks in advance