>I'm looking for the most simple and clean way to handle the error's that occurs when the dataenvironment try's to open tables that are in exclusive use by other users.
>For simple programs i don't want that forms load when one or more table's are in exclusive use by other users.
>Someone a great idee..??
Create a property on your form (let's call it FileFailed). In the Error method of your DataEnvironment, you can put "thisform.FileFailed = .T.", and in the Load method of the form, you can:
IF thisform.FileFailed
MESSAGEBOX("File failure!")
RETURN .F.
ENDIF