I am desperate for some help. I have a very simple piece of code that doesn't work.
I request a number from the query string
I request a number from a database (MS Access)
If one is bigger, display true, else, display false!!
Then, go to the next item and do the same until EOF/BOF
So, my code looks like
Expand|Select|Wrap|Line Numbers
- While ((RepeatAdvancedSearchResults__numRows <> 0) AND (NOT rsAdvancedSearchResults.EOF))
- if (rsAdvancedSearchResults.Fields.Item("MinContacts").Value) >= request.QueryString("contacts") then
- response.write("It worked")
- else
- response.write("It did NOT work")
- end if
- %>
- SHOW INFORMATION
- <%
- RepeatAdvancedSearchResults__index=RepeatAdvancedSearchResults__index+1
- RepeatAdvancedSearchResults__numRows=RepeatAdvancedSearchResults__numRows-1
- rsAdvancedSearchResults.MoveNext()
- Wend
- %>
I have tried converting the numbers into variables. Do I need to tell the computer the variable is an int??
Please help
Thanks
Dave