>Thanks nick, that worked. But now if I want to drop the table, it doesn't know what table I am talking about. Do I need to do drop table ranvar+'.dbf'? Thanks for you help anyways.
>
>Nick Patel
DROP TABLE (ranvar)
is enough. You should keep the generated name somewhere if your ranvar variable goes out of scope.
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