Hi,
I have been looking at this statement trying to figure out why it is not working. I hope that someone here can help me out.
This is the statement that I'm having trouble with:
<% If (intRecordCount = "0") Then%><b>It appears that both Gregory and Marty are available for your wedding date!</b><% ElseIf (intRecordCount = "1") Then%><b>It appears that one photographer is available for your wedding date!</b><% ElseIf (intRecordCount > "1") Then%><b>I'm Sorry. It appears that both photographers are booked for that day. Please contact the studio at 608.222.2698 to confirm this information.</b><% Else %><b>See If Your Wedding Date Is Available!</b><% End If %>
What's going on is someone enters in a date and the code goes out to a database and counts the number of records returned and then displays the appropriate message. Everything is working fine exept when you first load the page is displays the second to last message
<b>I'm Sorry. It appears that both photographers are booked for that day. Please contact the studio at 608.222.2698 to confirm this information.</b>
instead of my default message of
<b>See If Your Wedding Date Is Available!</b>.
I works if I change
<% ElseIf (intRecordCount > "1") Then %>
to < . But I need the exact opposite. Am I missing something? I have also tried >= with no luck.
I would appreciate any help.