out boolean OUT_Active; {default form to 'RM_Sales_Entry';} {default window to 'RM_Sales_Entry';} OUT_Active = false; { Get Current User's Class } 'User ID' of table SY_Users_MSTR = 'User ID' of globals; get table SY_Users_MSTR; if err() = OKAY then if not empty('User Class' of table SY_Users_MSTR) then { Get Record from table, if it exists } 'Customer Number' of table RM_Customer_MSTR = 'Customer Number' of window RM_Sales_Entry of form RM_Sales_Entry; get table RM_Customer_MSTR; if err() = OKAY then { Validate User Defined Field } if 'User Defined 2' of table RM_Customer_MSTR <> 'User Class' of table SY_Users_MSTR then warning "Access to Customer ID "+'Customer Number' of table RM_Customer_MSTR+" is only available to Users of Class: " + 'User Defined 2' of table RM_Customer_MSTR; OUT_Active = true; end if; end if; end if; end if;