elliottbenzle
asked on
Help with if then statment
I want to write an if then statement so that a record only displays if there is something in the entry other than "Select Month" and "Select Day" (the first selection in two drop down menus). I don't know the proper way to write this in code. Can someone take a look at what I've got and help me out? I'm using ASP VBScript. Thanks.
<% If rsevents.monthto <> "Select Month" And rsevents.dayto <> "Select Day" Then %>
to <%=(rsevents.Fields.Item(" monthto"). Value)%>&n bsp;<%=(rs events.Fie lds.Item(" dayto").Va lue)%>
<% End If ' end rsevents.EOF And rsevents.BOF %>
recordset = rsevents
column names = monthto and dayto
<% If rsevents.monthto <> "Select Month" And rsevents.dayto <> "Select Day" Then %>
to <%=(rsevents.Fields.Item("
<% End If ' end rsevents.EOF And rsevents.BOF %>
recordset = rsevents
column names = monthto and dayto
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER