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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Error Message

Status
Not open for further replies.

CuteGeek

MIS
Nov 20, 2002
12
US
Error Message: The report parameter ‘prmPI’ has a DefaultValue or a ValidValue that depends on the report parameter “prmPI”. Forward dependencies are not valid.

I have created a dataset that shows the below query: this is working.

SELECT
0 AS ID,
'All' AS name
UNION
SELECT DISTINCT
per.ID, per.lname + ', ' + per.fname + ' ' + per.mname AS name
FROM awardpi api
JOIN personnel per ON api.piID = per.ZID
WHERE @prmPI = CONVERT(varchar(100), per.ID)
ORDER BY per.ID

Than in Report Parameter I have below:
dataset dsPI
Value field: ID
Label field: name

but I am still getting the above error message..not sure what I am missing..

Thanks
Cutegeek
 
What do you have set for the "Default Value" property of that parameter?

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top