Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Form Fields Not Editable
Giovanni Miranda 
    
3 years ago
I've got this code that allos me to make my forms un-editable, and if I want to edit it I just click a button and I can edit all the Fields in the Form. When I go to the next Record it reverts back to it's non-editable state.

That works fine, but...I also have buttons that allow me to add a day to the Date Field and subract a day from the Date Field. Using these buttons still allows me to edit the Date Field while it's in non-editable mode.

Didn't think this was possible, is there a way I can make those buttons also non-clickable when I'm in the non-editable mode?

Here's my code:

Option Compare Database

Private Sub DwnOneBtn_Click()

    CreateDate = CreateDate - 1
    
End Sub

Private Sub EditBtn_Click()

    Me.AllowEdits = True
    Me.AllowDeletions = True
    Me.Caption = "EXAMPLE FORM - EDITABLE FORM"
    
End Sub

Private Sub Form_Current()
    Me.AllowEdits = False
    Me.AllowDeletions = False
    Me.Caption = "EXAMPLE FORM - NON EDITABLE FORM"
End Sub

Private Sub TmrwBtn_Click()

    CreateDate = Date + 1
    
End Sub

Private Sub TodayBtn_Click()

    CreateDate = Date
    
End Sub

Private Sub UpOneBtn_Click()

    CreateDate = Nz(CreateDate, Date) + 1
    
End Sub
Giovanni Miranda OP  @Reply  
    
3 years ago

John Davy  @Reply  
         
3 years ago
You could make the button invisible when you are in the non edit mode.

John
Giovanni Miranda OP  @Reply  
    
3 years ago
Yes, I figured this out shortly after I sent this request in, this is what I came up with:

Giovanni Miranda OP  @Reply  
    
3 years ago

Giovanni Miranda OP  @Reply  
    
3 years ago

Giovanni Miranda OP  @Reply  
    
3 years ago

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

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 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/8/2026 8:09:51 PM. PLT: 1s