Hello,
I am trying to understand how I'd go about designing one query (Even if I have to use SQL to do it) that chooses its table based on a variable.
So:
I have 12 tables named F01,F02, F03 etc
and want to preferably have a configuration page (Form Possibly?!) that has a combo box with all the table names in, from which you can set which table the query should use.
How do I also set it so that the variable selected is stored for future use until updated again via the form?
So I expect the query code will look something like (Keeping it simple)
Code:
SELECT DISTINCT VARIABLEHERE.ProjectNumber, Max(VARIABLEHERE.[Accounting Date]) AS [MaxOfAccounting Date]
FROM VARIABLEHERE
GROUP BY VARIABLEHERE.ProjectNumber;
Thanks