PC Review


Reply
Thread Tools Rate Thread

Can I protect certain fields in a form in Access for specific user

 
 
=?Utf-8?B?QWJiZTk1MDg=?=
Guest
Posts: n/a
 
      28th Apr 2005
I am setting up a database in which customers will enter their feedback and
in the same form I have a section "for office use only" that will be used by
employees to tabulate information from the upper part of the form. I am
wanting to protect the bottom by password so that only a few trained people
can enter this information. How do I do this? (I already know that I can
protect an entire form, but what about parts of the form?)
 
Reply With Quote
 
 
 
 
Jason Rice
Guest
Posts: n/a
 
      2nd May 2005
One way that you could do this is to disable all of the fields that you want
to protect in the form's design view. Then add a method for the user to
enter the password (i.e. a text box on the current form, a command button
that runs a password verification, etc). If the password is correct, then
you can just enable the fields.

field1.enabled=true
field2.enabled=true

Depending on the names you are using for your fields you could also set up a
loop to enable the fields that you need to protect.

If the fields contain numbers to differentiate them:
For i = 1 to 2
me.controls("field" & i).enabled=true
next i

If the fields have a common string in the names:
Dim ctrl as Control
For Each ctrl In Me.Controls
If ctrl.Name Like "*protected*" Then Me.Controls(ctrl.Name).Enabled =
True
Next ctrl


--
HTH
Jason Rice
"Abbe9508" <(E-Mail Removed)> wrote in message
news:A44B7CD4-E6A1-4F22-8B00-(E-Mail Removed)...
>I am setting up a database in which customers will enter their feedback and
> in the same form I have a section "for office use only" that will be used
> by
> employees to tabulate information from the upper part of the form. I am
> wanting to protect the bottom by password so that only a few trained
> people
> can enter this information. How do I do this? (I already know that I can
> protect an entire form, but what about parts of the form?)



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Form Fields, Protect Form, Mail Merge, Templates vs Documents QA info Microsoft Word Document Management 3 24th Mar 2009 09:23 PM
form fields - user access MAR Microsoft Access Forms 0 17th Feb 2009 06:53 PM
how do I include user defined fields in custom form so I can export them to access table Microsoft Outlook 1 3rd Jun 2005 10:33 PM
Linking Custom Form User-defined fields from Oulook to Access Fercat Microsoft Outlook Form Programming 1 11th Dec 2004 01:49 PM
Re: How can I protect some of form fields in a document? Suzanne S. Barnhill Microsoft Word New Users 0 29th Aug 2003 02:19 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:37 AM.