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

G

Guest

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top