M
m.ra. via DotNetMonster.com
hi.
ive been using a certain code for updating information from a windows form
to an Access database , and it was handling the addition of new information
properly until now.
now suddenly the dataset seems to be reordering the rows in an arbitrary
fashion, and since i use
ds.tables("form1").rows(ctr-1).item(*column name*)
to add the data, the information keeps getting added to the wrong row.
moreover, the program picks one row and keeps overwriting the information
ONLY to that one row no matter how many new rows i create, which makes it
weirder still because the variable ctr is defined as
ctr = ds.tables("form1").rows.count
i dont have any constraints on my sql select statement when i access the
database - no order by or sort by.ive also checked my code several times to
see if ive reassigned the ctr value anywhere but i havent, so thats not the
problem.
can someone please help?
thanks in advance.
ive been using a certain code for updating information from a windows form
to an Access database , and it was handling the addition of new information
properly until now.
now suddenly the dataset seems to be reordering the rows in an arbitrary
fashion, and since i use
ds.tables("form1").rows(ctr-1).item(*column name*)
to add the data, the information keeps getting added to the wrong row.
moreover, the program picks one row and keeps overwriting the information
ONLY to that one row no matter how many new rows i create, which makes it
weirder still because the variable ctr is defined as
ctr = ds.tables("form1").rows.count
i dont have any constraints on my sql select statement when i access the
database - no order by or sort by.ive also checked my code several times to
see if ive reassigned the ctr value anywhere but i havent, so thats not the
problem.
can someone please help?
thanks in advance.