Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Edit Mode 2 < Tag Property | Do Records Exist? >
Edit Mode 2
By Richard Rost   Richard Rost on LinkedIn Email Richard Rost   20 days ago

Lock Fields with Tag Property in Access


 S  M  L  XL  FS  |  Slo  Reg  Fast  2x  |  Bookmark Join Now

In this Microsoft Access tutorial I will show you how to create an edit mode that locks most fields on your form by default, but keeps specific fields like search combo boxes or notes unlocked and always editable. We will use the Tag property to mark which controls should be locked, and then loop through the form's controls in VBA to manage their Locked and BackColor properties efficiently, reducing the amount of manual coding needed in large forms. I will also show you how to use simple error handling for control types that don't have certain properties.

Ken from Rancho Cordova, California (a Gold Member) asks: I'm interested in having my form be read-only by default with an Edit button to make it writable. I just saw your videos about Edit Mode. In my case, I have a combo box in the header that selects a record, but it becomes frozen if I set the form's Allow Edits property to False. The only workaround I found is to set the Locked property for all the individual controls, but that's a lot of VBA if the form has many controls. Is this the best way to do it, or is there a better approach?

Members

There is no extended cut, but here is the file download:

Silver Members and up get access to view Extended Cut videos, when available. Gold Members can download the files from class plus get access to the Code Vault. If you're not a member, Join Today!

Prerequisites

Links

Recommended Courses

Learn More

FREE Access Beginner Level 1
FREE Access Quick Start in 30 Minutes
Access Level 2 for just $1

Free Templates

TechHelp Free Templates
Blank Template
Contact Management
Order Entry & Invoicing
More Access Templates

Resources

Diamond Sponsors - Information on our Sponsors
Mailing List - Get emails when new videos released
Consulting - Need help with your database
Tip Jar - Your tips are graciously accepted

Questions?

Please feel free to post your questions or comments below or post them in the Forums.

KeywordsEdit Mode 2 in Microsoft Access

TechHelp Access, edit mode button, lock form fields, AllowEdits property, combo box locked workaround, loop through controls, Tag property usage, lock/unlock specific fields, LockFields subroutine, VBA For Each loop, control Locked property, subroutine for locking fields, dynamic form locking, gray out locked fields, BackColor property, On Error Resume Next VBA, debug immediate window, runtime error trapping, toggle edit mode, save button implementation, preventing accidental edits, user-friendly form security

 

 

 

Comments for Edit Mode 2
 
Age Subject From
21 daysTranscriptRichard Rost
21 daysQuizRichard Rost

 

Start a NEW Conversation
 
Only students may post on this page. Click here for more information on how you can set up an account. If you are a student, please Log On first. Non-students may only post in the Visitor Forum.
 
Subscribe
Subscribe to Edit Mode 2
Get notifications when this page is updated
 
 
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/12/2025 8:19:49 AM. PLT: 2s
Keywords: TechHelp Access, edit mode button, lock form fields, AllowEdits property, combo box locked workaround, loop through controls, Tag property usage, lock/unlock specific fields, LockFields subroutine, VBA For Each loop, control Locked property, subroutine fo  PermaLink  Edit Mode 2 in Microsoft Access