WhereStr = "" if Surname <> "" then WhereStr = WhereStr & "Surname LIKE '" & Surname & "%'" end if if GivenName <> "" then if WhereStr <> "" then WhereStr = WhereStr & " AND " end if WhereStr = WhereStr & "GivenName LIKE '" & GivenName & "%'" end if
If WhereStr <> "" then WhereStr = "WHERE " & WhereStr
end if SQL = "SELECT * FROM CustomerT" & WhereStr %>
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Active Server Pages Forum.