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

Order By in Query needs to reference parameter form item

Status
Not open for further replies.

MrPhreaker

Programmer
Jun 20, 2003
19
GB
Hi All

I have a report which runs

select x,y,z from b
order by :param

:param is a user parameter that is determined from the parameter form.

However, when i run the report, the order by clause is ignored. Can anyone help ?
 
You should use lexical parameter insted of bind variable: select x,y,z from border by &param

Don'tforget to provide valid default value for param.


Regards, Dima
 
nevermind, got it working by using a decode in the order by part of the clause.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top