Rousseau10
Programmer
I am a newbee. I need to loop through the a recordset to find duplicates value in a field.
So I would need a nested loop correct. 1 loop to go through records set to get the control field value and a nested loop to go through recordset to compare the fields value to the control field value.
If this is true do I need to dimension to recordsets rs1 and rs2. My thinking for needing 2 recordsets is becuase the the first recordset needs to go through the records sequentially and the seconds(compare) recordset needs to alway start at the first record each time it loops.
Is my logic correct here?
And now is a good time to ask, how do I get the record position and tell a loop to start at that position?
thanks
So I would need a nested loop correct. 1 loop to go through records set to get the control field value and a nested loop to go through recordset to compare the fields value to the control field value.
If this is true do I need to dimension to recordsets rs1 and rs2. My thinking for needing 2 recordsets is becuase the the first recordset needs to go through the records sequentially and the seconds(compare) recordset needs to alway start at the first record each time it loops.
Is my logic correct here?
And now is a good time to ask, how do I get the record position and tell a loop to start at that position?
thanks