>I'm not sure but you can try this:
>SELECT * FROM myTable WHERE myCodeField IN (&myCodeVariable)
I tried this, VFP converts it to ('&myCodeVariable') i.e understands it as text value.
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