Restricting which user can enter data

D

Daniel P

Hello

I created a database with user groups ... and all the othere bells and whistles

However, my question is: " Is is possible the restrict which users can enter information into specific field on a form?

Let say Daniel would be able to enter a date in the date field but no one else could

Thanks for all your help

Daniel
 
J

Joan Wild

Daniel said:
I created a database with user groups ... and all the othere bells
and whistles.

However, my question is: " Is is possible the restrict which users
can enter information into specific field on a form?"

Let say Daniel would be able to enter a date in the date field but no
one else could.

Since you've implement user-level security, you can use the function in the
security FAQ to see if the current user is a member of a certain group.

The faq is available from
http://support.microsoft.com/?id=207793

The function is called faq_IsUserInGroup

In the open event for your form, you can use the function
If faq_IsUserInGroup ("groupName", CurrentUser()) = true then
me.DateField.locked = false
else
me.DateField.Locked = True
End if
 

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