Concurrent server queries

Is there a way to run a server connect query after another one completes on a page that doesn’t really have any buttons or actions. Just running in the backround?

Here is what i have…
I have a page that loads a Paged Query to send out emails to clients. Each query returns about 250 emails and sends them out. The page waits about 10 minutes before running the query again.

What i want to have happen is once the query is completed and there are no more results to be displayed in the query…another query will run and reset the database. But i only want this to run after all of the emails have been sent.

Sometimes this page can auto-refresh about 15 times before there is no data in the query, so i can’t have this run each time.

Is that possible? I couldn’t figure out what functions to use to complete this.

Community Page
Last updated: