>What if I don't want the error to show up for the user and I want just run a process on the side if the table is not used. I tried the error handler but I still saw a messagebox showing up on screen. >
Try this:
lUseExclusiveWorked = .t.
cErrHandler = ON('ERROR')
ONERROR lUseExclusiveWorked = .f.
USE <i>JRandomTable</i> EXCLUSIVEONERROR &cErrHandler
IF lUseExclusiveWorked
PACKUSEELSE * do whatever you want if the USE EXCLSUIVE failedENDIF