>Yes, it returns 866.
I guess what you need here is Character(Binary) field type (almost suggested it, but remembered that it's FP 2.5 where this field type does not exist. :). Is there the particular reason to use the binary data for the Id field, or you could use some standard character surrogate key instead?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison