>Perfect Cathy. Thanks! I had tried a form property but I didn't have the sequence correct to set it and check for it. Now it is working great. However, just curious, but is there a way to check for the existence of a table without knowing its actual filename?
Yes there is a way to do it generically. Put this code in the OpenTables method of the dataenvironment:
NODEFAULT
llOkay = .t.
FOR ln = 1 TO This.Objects.Count
IF This.Objects[ln].Baseclass <> 'Cursor'
LOOP
ENDIF
IF FILE(This.Objects[ln].Cursorsource)
WAIT WINDOW This.Objects[ln].Cursorsource + ' exists'
ELSE
WAIT WINDOW This.Objects[ln].Cursorsource + ' does not exist'
llOkay = .f.
EXIT
ENDIF
ENDFOR
IF llOkay
DODEFAULT()
ELSE
ThisForm.lAbort = .t.
ENDIF