Evren Betimen
12-11-2009, 04:01 AM
CusNameFld = request("CustomerNameField")
SQL = "SELECT Customers FROM Sales WHERE CustomerName = "&CusNameFld&" "
set RS = Server.CreateObject("ADODB.RecordSet")
RS.open SQL , conn , 1 , 3
if not rs.eof then
...Some Code...
end if
...Some HTML code...
if rs.eof then
...(Needed code)... (I want to show all customers)
I want to return CusNameFld variable to assign a value as "0" to show all records on my ASP Page. Is it possible to do?
Thanks in advance,
Greetings
SQL = "SELECT Customers FROM Sales WHERE CustomerName = "&CusNameFld&" "
set RS = Server.CreateObject("ADODB.RecordSet")
RS.open SQL , conn , 1 , 3
if not rs.eof then
...Some Code...
end if
...Some HTML code...
if rs.eof then
...(Needed code)... (I want to show all customers)
I want to return CusNameFld variable to assign a value as "0" to show all records on my ASP Page. Is it possible to do?
Thanks in advance,
Greetings