用IF 来判断
Dim keyword
keyword=request.form("Title")
if keyword="" then
sql = "SELECT * FROM Product ORDER BY id DESC"
else
sql = "SELECT * FROM Product WHERE Title like '%" + Replace(keyword, "'", "") + "%' ORDER BY id DESC"
end if
rs.open sql,coon,1,1
这样判断应该可以实现吧`````