Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > After Update < Check Spelling | Decades >
Back to After Update    Comments List
Upload Images   Link   Email  
Update YN field after email
Susan Williams 
      
2 years ago
Is there a way (I know there has to be :-) ) to set a field [in my case a Y/N to Y] using VBA but maybe not AfterUpdate and IF/Then?  Here's my situation,

I have an "Email Confirmation" button which runs some code that sends a training confirmation email to the appropriate person with details about the upcoming training. (Date, Location, Time, etc., all fields in the table)

I would like to have the EmailSent (Yes/No) field update to Yes when that email is sent.  I assume I just need to add a line or two to the end of the code, but I don't know what the lines are :-D  

this is what I would like to happen:
--User adds training details to form
--User clicks "Email Confirmation" button, which brings up the populated email
--User confirms and sends email
--EmailSent field updates to Yes.

Thanks in advance--learning so much!!
Scott Axton 
          
2 years ago
Sure.  In your code just add

     YourField = True

So assuming your field is EmailSent
     EmailSent  = True
Susan Williams OP 
      
2 years ago
I KNEW it was going to be super simple!! Thanks, Scott!

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

 
 
 

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: 1/14/2025 10:35:10 PM. PLT: 1s