I found this to be very upsetting.
If a record matches customer's search code, display the record
otherwise, display a message indicating that record is not on our database.
That shouldn't be that hard, yet anytime I open the page to test it, first thing I see is the message that says "This record doesn't exist in our database.
here is a snip
If a record matches customer's search code, display the record
otherwise, display a message indicating that record is not on our database.
That shouldn't be that hard, yet anytime I open the page to test it, first thing I see is the message that says "This record doesn't exist in our database.
here is a snip
Code:
dim productCode
ProductCode = rs("ccode")
'If request.form("orderNumber") = ProductCode then
searchstr = "SELECT products.ccode, orders.orderid, orders.odate, orders.deliverFlag, Sum((oitems.numitems)*(orders.orderamount)) AS Amount, customers.cfirstname , customers.clastname, orders.ostatus, orders.oprocessed" & _
" FROM orders, customers, oitems,products " & _
" WHERE customers.custid = orders.ocustomerid and orders.orderid = oitems.orderid and oitems.catalogid = products.catalogid and products.ccode='"&request.form("orderNumber")&"'" & _
" GROUP BY orders.orderid, orders.odate,customers.cfirstname,customers.clastname,orders.ostatus,orders.oprocessed, products.ccode,orders.deliverFlag" & _
" ORDER BY orders.odate desc "
objConn.Execute(searchstr)
'else
' response.write "<div align='left'><tr><td>No such record exists in our database</td></tr></table>"
' response.end
'end if