hello
In a saved query, is there any way to use a parameter for a table's name in the FROM statement.
I get an error message (Parameter 'Enter_Table_Name' specified where a table name is required) when I try this...
I use this as a quick but frequent diagnostic test, so I don't really want to build the query in VBA.
Can it be done in a saved query?
thanks in advance
Teach
In a saved query, is there any way to use a parameter for a table's name in the FROM statement.
I get an error message (Parameter 'Enter_Table_Name' specified where a table name is required) when I try this...
Code:
PARAMETERS [Enter_Table_Name] Text(255);
SELECT t.X, t.Y, COUNT(*) AS Z
FROM [Enter_Table_Name] t
GROUP BY t.X, t.Y;
I use this as a quick but frequent diagnostic test, so I don't really want to build the query in VBA.
Can it be done in a saved query?
thanks in advance
Teach