Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Want default value in drop down for a parameter 1

Status
Not open for further replies.

AndyH1

Programmer
Jan 11, 2004
350
GB
I'm trying to have a value selected in one of the dropdowns when the user first goes into a report rather than it simply saying <select a value>. I had thought going to the parameter properties for the item, selecting Default values and choosing 'specify values' and putting a value would do this, but it doesn't seem to work. Iv'e tried under Default values selecting 'specify values' clicking on the Add button and putting a value (such as 1 in the field, or even an expression =1, but neither of these seem to do what I require. can anyone advise what I'm doing wrong
Thanks
AndyH1
 
Go to Report -> Report Parameters. On that screen under default values, select "From query" and put in the correct dataset and the variable name that is shown in the dropdown box. That should bring back the first item returned in the dataset.
~Brett

--------------------------
Web/.net Programmer & DBA
Central PA
 
Thanks thats great. I'd never have worked that out myself
Cheers
AndyH1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top