Solved

Access - Using VBA to lock a column

Posted on 2007-11-14
2
829 Views
Last Modified: 2012-05-05
Using VBA, how do I change the properties of a field to locked?
0
Comment
Question by:SharonInGeorgia
2 Comments
 
LVL 65

Accepted Solution

by:
Jim Horn earned 250 total points
ID: 20281803
Me.YourFieldName.Locked = True

{related}

Me.YourFieldName.Enabled = False
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 20287460
SharonInGeorgia,

(No Points)
also related...
Set the "Locked" property of the control to Yes, if you want it to be locked automatically, when the form opens.

JeffCoachman
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

760 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

21 Experts available now in Live!

Get 1:1 Help Now