Procedure dbc_BeforeOpenTable(cTableName) *Just before a table or view is opened. Return .F. to prevent table or view being opened. If Atc("user_info",cTableName)#0 On Error Do ermsg If m.sysrunning = .T. On Error RETURN .t. ELSE Messagebox('This table may not be accessed from outside the Service Software',48,'Nice Try') If Atc("user_info",cTableName)#0 And Upper(Alltrim(Inputbox('Enter Password','Password Required')))#"mwpassword" Return .F. Endif Endif Endif EndprocRich