Dear AP Forums,
I want to query my Sites table and then loop through some VBA for each of the sites returned by the query.
I imagine I need to do this by putting the query results into an array but I can't figure out how. Please could someone recommend a tutorial, or explain this? (please speak slowly!).
Background:
I am using Access 2003.
tblSites has PK SiteID (integer).
I have a working query to select the sites I need to report on - it's currently filling a ComboBox.
I also have the loop working 'in principle' - just that it's looping 1 to 10 instead of 6, 21, 70, 134... or whatever the query is returning.
I want to query my Sites table and then loop through some VBA for each of the sites returned by the query.
I imagine I need to do this by putting the query results into an array but I can't figure out how. Please could someone recommend a tutorial, or explain this? (please speak slowly!).
Background:
I am using Access 2003.
tblSites has PK SiteID (integer).
I have a working query to select the sites I need to report on - it's currently filling a ComboBox.
I also have the loop working 'in principle' - just that it's looping 1 to 10 instead of 6, 21, 70, 134... or whatever the query is returning.