UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to prevent certain value from being updated in a field    
 
   
azzaro69
post Jul 30 2006, 02:28 AM
Post #1

UtterAccess Addict
Posts: 141



Dependent on the user name I want to restrict certain user from updating a certain value in a field i.e.if username A entered a value say "CAT" an error msg will pop-up however for username B if he entered "CAT" it is OK.

TQ in advance.
Go to the top of the page
 
+
dannyseager
post Jul 30 2006, 06:14 AM
Post #2

UtterAccess VIP
Posts: 13,031
From: Leicester, UK



In the before update event of the control add in

If Username<>"UsernameA" then
Msgbox "Only Username A can edit this
cancel=true
else
end if

This code will not work but it gives you an idea... The code needs modifying depending on how you determine who the current user is.
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 23rd May 2013 - 11:34 PM