DBC, but You can check if the table is closed:
LOCAL table_not_used
IF .NOT. USED("YourTable")
USE YourTable IN 0
table_not_used = .t.
ENDIF
SELECT YourTable
IF table_not_used
USE IN YourTable
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.