Groups | Blog | Home
all groups > sql server reporting services > june 2007 >

sql server reporting services : Lookup value for a field?



Brooke
6/13/2007 3:52:57 PM
Using VS2005 and creating reports. GUI has combo boxes with lookups. The
main table is storing the selected.value of the combo box, but the combo box
is displaying the "Name" column.

How do I display the "Name" column value on a report for a field instead of
the integer value of the row?

Thanks.

Alain Quesnel
6/13/2007 6:30:55 PM
If you look at the different options in the parameter creation window, it's
pretty straightforward.

1) While on the "Data" tab, go to "Report | Report Parameters" in the menu.
2) Click on "Add".
3) Give a meaningful name to your parameter (other than
"Report_Parameter_0")
4) Select a datatype (string, int, etc.). In your case, this would be int.
5) Type a prompt for your parameter (this will appear to the left of your
parameter combobox in the browser).
6) In the "Available Values" section, select "From Query"
7) Select the dataset you will use for your parameter values (typically a
separate dataset from the report's main dataset).
8) Put your key field (the integer value) in the "Value Field" drop down.
9) Preview, Rebuild or redeploy your report and voilà!

HTH,

Alain


[quoted text, click to view]
AddThis Social Bookmark Button