Here is code that you can put in the class AppApplication in BeforeReadEvents
SET DATABASE TO AppData
PUBLIC oMeta
oMeta = newobject('DBCXMgr', 'DBCXMGR.VCX', '', .F.)
if type('oMeta') <> 'O' or isnull(oMeta)
* display an error message and exit, because DBCX cannot be used
endif type('oMeta') <> 'O' ...
oMeta.SetDatabase(dbc())
* Require successful logon before application may continue.
* If you dont care about secutity issues, you can remove this line.
RETURN IIF(ISNULL(THIS.oSecurity), .T., THIS.oSecurity.AutoLogonDialog())
HTH
*******************************************************
Save a tree, eat a beaver.
Denis Chassé