Hi folks ... have a new problem that I'm having difficulty in describing to myself, hence hard to search for solutions! Let's see if this makes sense:
Short version: I want to take an action on a set of data that has been filtered in a form.
Longer version:
I have a big table of people - each record (person) has many fields in it.
I have a query based on that table, with just a few of the fields, and which is a subset of all of the people. I have a form which looks at the data in this query, as a continuous form. No problem so far - I can see all the data I want, and make changes to it as required.
I can use the built-in filtering tool to make a further filter on the records I'm looking at. Also fine.
Now, however, I want to perform an action based on the set of records that I am now looking at, but don't know how to get at the right set of records.
For example, I might want to run a report (which uses records from my main persons table) - but only for the list of people that I am now looking at in my filtered form.
Or, I might want to send an email to all of the people that I am now looking at (I have VBA code to take care of sending an email to a particular person).
Is there, for example, a recordset that I can get at which corresponds to the list of records that I am looking at in my form? Or is there a better way of achieving what I want?
All suggestions gratefully received!
TIA