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

Executing UDF with an input parameter

Status
Not open for further replies.

zuza

Programmer
Nov 9, 2003
54
YU
Hi there,

I want to execute UDF with input parameter claimno = request.form(claimno) ... how do I have to write the statement, for instance:
str="select top 1 statusnew from getNewStatusByDS(" & "'Claimno'" & ") order by datemax desc"

Or in different way ... maybe completely wrong.

ciao,
ZuZa.
 
assuming your function is getNewStatusByDS() and it returns some value.

probably;
Code:
str="select top 1 statusnew from " & getNewStatusByDS(Claimno) & " order by datemax desc"
[code]





Chris.

Indifference will be the downfall of mankind, but who cares?
[URL unfurl="true"]www.candsdesign.co.uk[/URL] A website that proves the cobblers kids adage.
[URL unfurl="true"]www.cram-system.com[/URL] Nightclub counting systems

So long, and thanks for all the fish.
 
Thnx,

this one is OK.

Code:
str = "SELECT top 1 statusnew from getNewStatusByDS('" & claimno & "')" & " order by datemax desc"
[code]

Rgds.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top