I need to grab the first two numbers off of a string run a conditional statement. For example,<BR><BR>id_number = 012145784512<BR><BR>I need the first two digits (i.e. 02) and then put them into a variable for conditional testing.<BR><BR>Would this work: tempvar = left(id_number,2)'just a guess!!<BR><BR>Help always appreciated!!!