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

why dont this work. function

Status
Not open for further replies.

gsc123

Programmer
Jan 24, 2008
197
Function pPriceMaxBidNotMine()
'get the highest bid for this item not belonging to me
sql = "SELECT TOP 1 bidhistory.bidAmount AS price FROM bidhistory WHERE (((bidhistory.idProduct)="&Session("pIdProduct")&") AND ((bidhistory.idCustomerBid) <> "&session("idcustomer")&")) ORDER BY bidhistory.bidAmount DESC "
set rsMax = conntemp.execute(sql)
pPriceMaxBidNotMine = rsMax("price")
rsMax = Nothing
End Function

Response.write " my bid = "&pPriceMaxBidNotMine()
 
This was the problem

rsMax = Nothing
 
what did you do to fix it? Do you know what was wrong with that line? If you don't know, do you want to know what was wrong with it, why you sould keep it and how to fix it?

--------
GOOGLE is a great resource to find answers to questions like "how do i..."

If you don't know exaclty what you want to do or what to search on, try Google Suggest: --------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top