strOrigCtyNo = Right(strOrig, Len(strOrig) + 2)
I believe it will give me the first 2 characters of the code. How do I
convert them to an integer constant to compare them, or do I even have
to? If I remember right from my old programming days, comparing numbers
in ASCII sometimes gives different results from comparing numbers. Is
that still true in VBA? What is the best way to proceed here?
Thanks again!
Jim Thomlinson
Thanks, Jim!
strOrigCtyNo = Left(strOrig,2)
a way to do the conversion would be
Dim lngOrigCityNo as Long
lngOrigCityNo = Left(strOrig,2)
-- 
Regards,
Tom Ogilvy
"davegb" <dav...@safebrowse.com> wrote in message
news:1124750040.5...@o13g2000cwo.googlegroups.com...