Solved Loop through datasheet form (1 Viewer)

Kayleigh

Member
Local time
Today, 06:53
Joined
Sep 24, 2020
Messages
706
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?
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 06:53
Joined
Jul 9, 2003
Messages
16,280
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:-
 

Kayleigh

Member
Local time
Today, 06:53
Joined
Sep 24, 2020
Messages
706
can this be done in a non-updateable recordset?
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 06:53
Joined
Jul 9, 2003
Messages
16,280
This is my answer to a somewhat similar question, which I thought might be of interest:-

 

Users who are viewing this thread

Top Bottom