Solved

Access Lock Fields in Table Design View

Posted on 2009-07-09
7
975 Views
Last Modified: 2013-11-29
Is there way to lock fields in table design view so that the entered values cannot be changed.

Thanks.
0
Comment
Question by:tahirih
7 Comments
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 50 total points
ID: 24819326
No.
Lock the form controls bound to the field.
0
 
LVL 4

Accepted Solution

by:
neil_squires earned 150 total points
ID: 24819810
It sounds like you are trying to duplicate functionality similar to an Excel where you can lock the fields and view them in a grid fashion.  Unfortunately, while an access table may look like an excel sheet, it behaves differently.

Best practices are to use a form to view/update the data in an Access database.  You can lock the fields a couple of different ways.  The simplest is to make the fields locked or disabled.  If you want the same look as Excel, you can also run a form in Data View rather than formview.  This will look similar to the table layout and is harder to work with than form view, but is doable.

HTH
0
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 150 total points
ID: 24822554
<<Is there way to lock fields in table design view so that the entered values cannot be changed.>>
  You'd have to user user level security to secure the table design.  However ULS is a bit complex and you should understand it fully before trying to implement it.  Also be aware that the feature has been dropped starting with Access 2007.
 You can download the Access Security FAQ here:
http://support.microsoft.com/?id=207793
and Joan Wild keeps a good page on Access security:
http://www.jmwild.com/Accesssecurity.htm
JimD.
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 74

Assisted Solution

by:Jeffrey Coachman
Jeffrey Coachman earned 150 total points
ID: 24824313
tahirih,

Or, depending on what the user should (or should not) be doing, you can simply open the form in "Read Only" mode:

  DoCmd.OpenForm "YourFormName", , , , acFormReadOnly

This will save you the trouble of figuring out which fields to Lock/Enable/Disable and when.

;-)

JeffCoachman
0
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 50 total points
ID: 24824387
yeah you could do that if you want to lock *ALL* the fields/controls, but it guess that is not the case here.
0
 

Author Comment

by:tahirih
ID: 24824804
Sorry everyone for the delayed response, I am not getting e-mail notification that answers have been posted.

0
 

Author Closing Comment

by:tahirih
ID: 31601861
Thanks.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now