I have a report with a parameter that is populated by a list of sales representatives returned by a query. I want to filter that list based on security rights of the user running the report.
In order to make the query work I need to pass the user!userID to the db. I tried something like this:
...where UserName = user!UserID...
But it doesn't like the syntax.
Change your query to:
where UserName = @user
... and in the "Parameters" tab, assign "User!UserID" to the "@user" parameter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With