Solved Loop through datasheet form

Kayleigh

Member
Local time
Today, 20:33
Joined
Sep 24, 2020
Messages
709
I have a form displayed in datasheet view and would like to create a function which loops through all records displayed (or possibly all selected records), open each one at a time and perform a specific function, then close it.
Any tips on how to perform the loop please?
 
the simplest way would be to add a check field/checkbox to the records displayed. The user could select the particular records you wanted to operate the code on. Now run a recordset loop from a command button to do what you want to do to the marked records.

More info here:-
 
can this be done in a non-updateable recordset?
 
This is my answer to a somewhat similar question, which I thought might be of interest:-

 

Users who are viewing this thread

Back
Top Bottom