out boolean OUT_Active; {default form to 'PM_Vendor_Maintenance';} {default window to 'PM_Vendor_Maintenance';} 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 } 'Vendor ID' of table PM_Vendor_MSTR = 'Vendor ID' of window PM_Vendor_Maintenance of form PM_Vendor_Maintenance; get table PM_Vendor_MSTR; if err() = OKAY then { Validate User Defined Field } if 'User Defined 2' of table PM_Vendor_MSTR <> 'User Class' of table SY_Users_MSTR then run script 'Clear Button' of window PM_Vendor_Maintenance of form PM_Vendor_Maintenance; clear '(L) Temp Control Number' of window 'PM_Vendor_Maintenance' of form 'PM_Vendor_Maintenance'; focus 'Vendor ID' of window PM_Vendor_Maintenance of form PM_Vendor_Maintenance; warning "Access to Vendor "+'Vendor ID' of table PM_Vendor_MSTR+" is only available to Users of Class: " + 'User Defined 2' of table PM_Vendor_MSTR; OUT_Active = true; end if; end if; end if; end if;