Ok, I figured out how to write the SQL for a parameterized crosstab query, and how to force the column headings so the result can be used to create a report. What I have not been able to figure out is how to write the SQL to select records based on the parameter specified or[/b] all records regardless of parameter, just like you can in the criteria box in the query design grid — example:
Like [Select Criteria or “*”] & “*”
How do you write the statement in SQL to include a wildcard function if you want to disregard the parameters?
I have tried using the vertical bar and percent symbol (e.g., PARAMETERS [SELECT Value] | % Text;) in the first line of the statement, but I get an error message and it says that I cannot use the “|” or the “%” in this statement.
So how do ya do it? I cannot imagine that the structure of Jet SQL limits the ability to use SQL wildcard characters. I have also tried using “*”, but to the same effect….no worky worky.
Please advise. Thanks.
Captain D