Thanks Darrel

Now I understand, Adval by itself returns 102? and when Adval=Adval*10 it returns 1023 which is what I am using.

Thanks again.

Tom