Help! I have an IF test in a page that's driving me nuts. When this test compares the two "custID" values it always returns True, even when the values match. In other words, setting the "var" variable >= 200 always results in an overall True, regardless of the custID values.<BR><BR>if ((rstemp("custID") <> Session("custID")) and (Session("var") < 200)) then<BR><BR>The goal is to find out if this customer is asking for his/her own data, so I compare the ID of the record with his/her ID. If I print the two custID values they are equal (I even checked for trailing spaces). Forcing different values returns True also. I've counted parentheses several times, and inverted the IF test (if a=b then...) to no avail. My last thought is that ASP is comparing the two types not values, but VBScript doesn't appear to allow typecasting...?<BR><BR>Thanks for any insight!