nested loop problems...
I have been looking at the same code for about an hour with no luck so even though I dont think this is a pro code I would appreciate some help...
I have nested loops - the problem I am encountering is that when the outer loop is entered once the inner loop loops the correct amount of times, once the outer loop is entered more then once the inner loop loops one additonal time...here is the code I cant seem to spot my error...
orss.open "rg", objconn, adopenkeyset, adlockoptimistic
do while not ors.EOF
for I = 0 to ors("wl_quantity")
orss.addnew
orss.fields("rg_registry") = registryid
orss.fields("rg_product") = ors("wl_product")
orss.update
next
ors.MoveNext
loop
|