I am trying to update a set of variables from the fields
of a recordset. I want to use a with statement to
economize on the code, but I don't believe I am addressing
the correct property of the recordset. Here is what I
have.
Thanks in advance for your help.
Steve
For i = 1 To 10
With oRs
.oRs(0) = mSelect5
.oRs(1) = mSelect6
.oRs(2) = mSelect7
.oRs(3) = mSelect8
.oRs(4) = mSelect9
.oRs(5) = mSelect10
mSelect4 = "INSERT INTO Temp.dbf(custno, item, invno,
cost, price, invdte) VALUES (" & mSelect5 & ", " &
mSelect6 & ", " & mSelect7 & ", " & mSelect8 & ", " &
mSelect9 & ", " & mSelect10 & ")"
oRs1.Open mSelect4, oCn
oRs1.MoveNext
End With
Next