Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Value from other dataset returned value

$
0
0

I have a report with two datasets. One dataset gives the values (names) for a dropdown list.  The other dataset takes that name chosen from the dropdown list to create the rest (a graph) of the report. Its that second dataset thats not quite working.  Its not catching the name chosen from the dropdown list. Here is what I have:

declare @name varchar(50)

select ID, Grade
  from tGroups
where ID = substring(@name,1,5)

What could I be missing?

Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>