Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Access - Using VBA to lock a column

Posted on 2007-11-14
2
Medium Priority
?
842 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 66

Accepted Solution

by:
Jim Horn earned 1000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

926 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