It's been awhile since I've coded an .asp and now I'm in the midst of one, so forgive me if this is a simple question...
I have an input page where the user can select several items which changes the sql query to the database. Basically if the user enters info in a text box, I want the default value in a drop down list to be "All" which is one of the options.
Here's what I've got so far (with out the monster query...)
If trim(request.form("edtCode"
)<>"" Then
response.write request.form("selMonth"
= "All"
sqlStr = sqlStr & "and event.event_code = '" & request.form("edtCode"
&"'"
End If
The error I'm getting is an expected close parenthesis ) in front of the "All". Without this line, it works fine, except that the user must select a month and I don't want them to have to do that.
Hope someone can help me out.
I have an input page where the user can select several items which changes the sql query to the database. Basically if the user enters info in a text box, I want the default value in a drop down list to be "All" which is one of the options.
Here's what I've got so far (with out the monster query...)
If trim(request.form("edtCode"
response.write request.form("selMonth"
sqlStr = sqlStr & "and event.event_code = '" & request.form("edtCode"
End If
The error I'm getting is an expected close parenthesis ) in front of the "All". Without this line, it works fine, except that the user must select a month and I don't want them to have to do that.
Hope someone can help me out.