I have a form written in vb.net that updates an access db This works fine and I check the table and the record is sitting atthe bottom with the primary key (bookingid) 1 number more that the last record.
The problem i have is when I fill a datagrid with the data in the table the last record I added shows in the middel of the data so the primary key field will be as follows 34,35,36,248,37,28,29.
When I look at the table in access it looks fine.
I can't sort the datagrid as I use a double click to fill another form using the row position and if I sort the data to get it in order the row position is wrong.
I deleted the primary key(bookingid) and re-input 1-248 and the datagrid picked them up in the correct order but as i added a new record the same problem.
Can anyone explain?
Regards
Scott
The problem i have is when I fill a datagrid with the data in the table the last record I added shows in the middel of the data so the primary key field will be as follows 34,35,36,248,37,28,29.
When I look at the table in access it looks fine.
I can't sort the datagrid as I use a double click to fill another form using the row position and if I sort the data to get it in order the row position is wrong.
I deleted the primary key(bookingid) and re-input 1-248 and the datagrid picked them up in the correct order but as i added a new record the same problem.
Can anyone explain?
Regards
Scott