Q
QB
I am trying to iterate through a series of sequential variables to use as a
multiplicative factor in a function but can't get the synthax quite right.
Could someone show me the proper way to do the following
For i = 1 To iNoEntries
rs.AddNew
rs![Amount] = Me.[Base Amount] * "Ratio" & i
rs.Update
Next i
if iNoEntries = 3 it would do 3 iterations, the equivalent of:
Me.Amount = Me.[Base Amount] * Ratio1
Me.Amount = Me.[Base Amount] * Ratio2
Me.Amount = Me.[Base Amount] * Ratio3
Thank you
QB
multiplicative factor in a function but can't get the synthax quite right.
Could someone show me the proper way to do the following
For i = 1 To iNoEntries
rs.AddNew
rs![Amount] = Me.[Base Amount] * "Ratio" & i
rs.Update
Next i
if iNoEntries = 3 it would do 3 iterations, the equivalent of:
Me.Amount = Me.[Base Amount] * Ratio1
Me.Amount = Me.[Base Amount] * Ratio2
Me.Amount = Me.[Base Amount] * Ratio3
Thank you
QB