You wrote: > If I run the first attempt it returns and error: type mismatch > >If objRS("adminperm") = CLng(Request.form("txtAPP")) Then Try: If CLng(objRS("adminperm")) = CLng(Request.form("txtAPP")) Then > not sure how your second option works? IF "" ?? The "" is a zero length string. Concatenating it with the number forces it to type String. Regards Chris Marsh