depending on the type of db you are using you may have some
concatenation functions available to you - check the sql
language
reference for your db.
otherwise, if you form value you are checking against is of
fixed format
- i.e. first 2 characters (to be checked against
session.CODE) + other 4
characters (to be checked against SN.code45) - you can use:
session.CODE = #left(formvalue, 2)# AND SN.code45 =
#right(formvalue,
len(formvalue)-2)#
--
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com