>Cecil, I was going to propose try...catch again until I saw the VFP6 comment...
>
>Just for interest, why do you need exclusive access? If there is a chance the target table is in use by others, could you bring the excel spreadsheet into a temporary repository and do a SCAN...INSERT...ENDSCAN?
Looks like he is zapping the original table thus the exclusive use.
BTW, Cecil, I think you didn't see my response to you where I pointed you the ready to use function OpenTble. It has all the functionality you're looking for and it was written for VFP6.
If it's not broken, fix it until it is.
My Blog