q.xlsm

q.png
Hi,
I really need a help on setting VBA code for running multiple SQL queries.

My goal is to run multiple difference queries through the customized function.
Is it possible to soft code the SQL string?
I would be super appreciated with your help..!!!