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 
Stop Code on Another Form
Jennifer Neighbors 
     
3 years ago
Hello! I am creating an email application that sends out messages to lists of people. Someone could create a long recipient list, press send, and quickly realize they made a mistake. I want the user to be able to abort sending messages as soon as they want to do so.

I envision a small popup-style form with a progress bar that shows the email messages going out and a button to abort the process. I can't think of any code I could use behind the button that would end the execution of code in the underlying form (the one sending the messages).

How can a button on Form B stop the execution of a procedure humming along on Form A? Is it possible?

Thanks so much for any advice!
John Davy  @Reply  
         
3 years ago
Hi Jennifer,
Take a look at Rick's video Access Developer 18 Lessons and see how he make an Abort button. Maybe if it were in a loop?

John
Jennifer Neighbors OP  @Reply  
     
3 years ago
Yes, Form A has a loop to send each recipient a message. I placed code in that loop to look at a hidden text field on Form B to check if its value is "Go" or "Halt." (The abort button, when pressed, changes the value from "Go" to "Halt.") I had to let this percolate in my head for an hour or so, and the answer became clear. There may be a more elegant solution, but this works! Now I need to watch that video you mentioned because it discusses progress bars: my next task...
John Davy  @Reply  
         
3 years ago
Great1 John

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/1/2026 8:44:18 PM. PLT: 0s