Hi,
i am new to vb.net and i have to rewrite a vb6 project.
I need to read from an indexed recordset one record at a time and compare data with records of another indexed recordset; if data are different or a record is missing I write a line of error in a list box.
Which is the best way to do this with vb.net and ado.net ? Could anyone help me with some code examples ?
This is my old vb6 code with ado
the record of rst1 and rst2 have these four fields :
Article;Colour;Size;Quantity
with rst1
.movefirst
rst2.movefirst
do until .eof
rst2.seek array(!Article, !Colour, !Size), adseekfirsteq
if rst2.eof then
...write error record missing
else
if rst2!quantity <> rst1!quantity then
... write error quantity is different
end if
end if
.movenext
loop
end with
Thank you
i am new to vb.net and i have to rewrite a vb6 project.
I need to read from an indexed recordset one record at a time and compare data with records of another indexed recordset; if data are different or a record is missing I write a line of error in a list box.
Which is the best way to do this with vb.net and ado.net ? Could anyone help me with some code examples ?
This is my old vb6 code with ado
the record of rst1 and rst2 have these four fields :
Article;Colour;Size;Quantity
with rst1
.movefirst
rst2.movefirst
do until .eof
rst2.seek array(!Article, !Colour, !Size), adseekfirsteq
if rst2.eof then
...write error record missing
else
if rst2!quantity <> rst1!quantity then
... write error quantity is different
end if
end if
.movenext
loop
end with
Thank you