Loop through all record in a table

D

Daniel P

Hello

How can I loop through every record in a table and edit the value of each. I tried the code below but I can't get it to work

Set rs = Me.Recordset.Clon
rs.MoveFirs
Do While Not EO
With r
Me.Bookmark = rs.Bookmar
.Edi
.Fields("Include In Report") =Tru
.Updat
End Wit
rs.MoveNex
Loo

Daniel
 
P

Patricia Cardoza - [MVP Outlook]

Do While Not rs.EOF

--
Patricia Cardoza
Outlook MVP
www.cardozasolutions.com

Author, Special Edition Using Microsoft Outlook 2003

***Please post all replies to the newsgroups***
Daniel P said:
Hello,

How can I loop through every record in a table and edit the value of each.
I tried the code below but I can't get it to work.
 

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

Top