Solved

Access - Using VBA to lock a column

Posted on 2007-11-14
2
832 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

822 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