A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How do I lock form for users except boss to review and sign



 
 
Thread Tools Display Modes
  #1  
Old October 5th, 2006, 06:30 PM posted to microsoft.public.access.forms
kris81252
external usenet poster
 
Posts: 1
Default How do I lock form for users except boss to review and sign

I am trying to lock my form after they have been input to all users except
boss who needs to review and sign off on them. How do I do this
  #2  
Old October 5th, 2006, 08:04 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default How do I lock form for users except boss to review and sign

Locking the form is not going to work for you. You need a field in your
table that determines whether they have been signed off. I recommend a
Boolen(yes/no) field with the default value set set in the table design to
False. Then Signed Off would be true.

Now put a CheckBox control on your form also with a Default value of False
and bind it to the field in your table. Make the Visible property of the
control No.

If the boss uses the same form as the users, then you need a way to make the
control visible only for the boss.

There is an API function at this site
http://www.mvps.org/access/api/api0008.htm
that allows you to determine who the logged on user is.
In the Load event of your form, call this function and if it returns the
boss' network login name, make the check box visible.
"kris81252" wrote:

I am trying to lock my form after they have been input to all users except
boss who needs to review and sign off on them. How do I do this

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:05 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.