Loop

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good afternoon,

I have a continuous form. How can I loop thropugh each record and perform
certain action?

Thank you,

Daniel
 
Daniel said:
I have a continuous form. How can I loop thropugh each record and perform
certain action?


Consider that request carefully. Most everyone that asked
for that is seriously violating the rules of normalization
and trying to treat with the recordset as if it were a
spreadsheet.

If you have a really valid reason for doing this. the code
would be along these lines:

With Me.RecordsetClone
If .RecordCount > 0 Then
.MoveFirst
Do Until .EOF
'perform unspecified action
Loop
End If
End With
 
I have a continuous form. How can I loop thropugh each record and
perform certain action?

Use a query on the underlying recordset:

UPDATE MyProducts

SET CurrentPrice = 1.15 * CurrentPrice,
LastIncrease = DATE()

WHERE YEAR(LastIncrease)<2006;

Hope that helps


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top