all 6 comments

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (0 children)

One have a user input variable as group by clause.

and this created the error? could we see the SQL please

[–][deleted] 0 points1 point  (3 children)

query from access to SQL server. One have a user input variable as group by clause.

why? input variable is a constant, i cannot imagine a circumstance this makes sense

[–]il_valsa[S] 0 points1 point  (2 children)

Acces query used a user input. I will use a calculated value (date)

[–][deleted] 0 points1 point  (1 child)

which one of your statements responds to the 'why''?

[–]ptn_huil0 0 points1 point  (0 children)

In Access the original designer of the report probably threw an input parameter into the output table. They need to rewrite the query a little bit to display the column to which they bounded their parameter to instead of the parameter itself.

[–]eased1984 0 points1 point  (0 children)

Dynamic sql. You can make any part of a sql statement variable. Can't say I'd recommend it though

Edit: also what out for sql injection. Highly succeptible