` 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 May 4, 2024, 12:57 pm
This article has been viewed/printed 35111 times.