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 
Button to clear form subform
Tom Henrikson 
       
2 years ago
I have a customer form with subforms for phone numbers, email address, mailing address, and contacts.  I have buttons for "save and new', "save and close", "save", etc.  I'd like to add a button for "Clear - no save" when data is entered, not yet saved, that clears all the fields in the form and the subforms.

I have a macro for the Close - no save that is close the form and don't save.  I'd like to do this but leave the form open to an empty record.
Adam Schwanz  @Reply  
           
2 years ago
If you want to undo what youve changed or cancel a new record, you can just use me.undo to revert it. If it's a record already created, you just need to set the value of all the fields to null or "". Same thing with subform.Value From a Form and Value From Subform

Like these
CustomerName=Null
Forms!CustomerF!CustomerSubForm.Form!OtherInfo=Null

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/16/2026 10:15:15 PM. PLT: 4s