Hi There,

I have a small problem I can't seem to work out (Prob simple).

I'm trying to set a variable so if it's less than do this e.g.

Code:
<%
Dim Offset
Offset = Request.QueryString("offset")
Dim LastPage
LastPage = 'This could be any number lets say 15

If Offset < LastPage Then
   Response.Write "<td><a href=''>Next</a></td>"
Else
   Response.Write "<td>Next</td>" ' This would disable the link
End If
%>
However this doesnt work, but if I do . . . .

Code:
<%
If Offset < 15 Then 'Force the number then this works
   Response.Write "<td><a href=''>Next</a></td>"
Else
   Response.Write "<td>Next</td>" ' This would disable the link
End If
%>
The the number may not be 15 each time, How can I get this to work.

Thanks