I am trying to code an exe in MS Access that contains a loop of queries. The exe will take a csv file and loop through lines of code running multiple queries to execute different functions.
The loops are shown below in an image:

The queries already exist, can they be simply called into a loop similar to php variables?
Furthermore, can I set a variable that will carry through future queries as they are to be run in a particular looped order? (Such that the variable min_value is set in the first query and carried into the second query and third and so forth...
--------- Added at 1393846838 as requested by @ElectricLlama ---------
Queries are as follows:
set $time query
SELECT datediff("s", #1/1/1970#, now()) AS unix_time;
select minimum value query
SELECT Min(Field4) AS min_value FROM Market;
select * where min query
SELECT * FROM Market WHERE Field4=min_value;
count (min) value query
SELECT count(Field4) AS count_total FROM Market WHERE field4=min_value;
The necessity for a loop is due to some variables in one query being either null or 1 and in another query either being 1 or >1
Thank-you
--------- Added at 1393855784 as requested by @ElectricLlama ---------

Sub MyFirstTry End SubIf you would like to explore how this might be done with queries only, provide some sample data.