` Printed Icetips Article

Icetips Article



Par2: Prevent user from updating a form
1999-10-26 -- Bill Roe
 
Try this (if ABC)
In the "Local Objects", "ThisWindow", "RUN" Embed point
(before calling the update form)
 
  Case Request
    Of InsertRecord
      If ~(YourUserRights) Then Return(RequestCancelled).
    Of ChangeRecord
      If ~(YourUserRights) Then Return(RequestCancelled).
    Of DeleteRecord
      If ~(YourUserRights) Then Return(RequestCancelled).
  End
 
This should prevent any of the above conditions from happening regardless
of how the are implemented (esc key etc.)



Printed November 23, 2024, 2:24 am
This article has been viewed/printed 35197 times.