599CD.com   Full View
 
 

What's New?  |  Tutorials  |  Tips  |  Blog  |  Forums  |  Help  |  Customer Logon  |  Order

 
     
 
Tips & Tricks
   

  Access   Excel   Word   Windows   FrontPage   Hardware   Misc

 
 

Microsoft Access AfterUpdate Events

Change Values, Run Events, Do 'Stuff' when a Field is Changed

Q: I have two fields on my form (HourlyRate and HoursWorked) and I need to calculate a billable service charge by multiplying them together and placing that value in a 3rd field (ServiceCharge). I need to be able to also just type in a ServiceCharge value or adjust it, so I can't just use a calculated field in a query. How can I do this?

A: You can use an AfterUpdate Event in both the HourlyRate and HoursWorked fields so that when they're changed, the ServiceCharge is automatically calculated. You can do this with a very simple one line of VBA code, as long as you know where to put it.

 

Here is a FREE VIDEO TUTORIAL that will walk you through an example of building an AfterUpdate Event. It's much easier to show you how it's done than to explain it here.

I teach the concepts in this free mini tutorial in my Access 303 course. These are full courses - over 60 minutes in length each. I spend a lot more time going over how to do this, in addition to lots more tips and tricks.

 

 

You may want to read these articles from the 599CD Blog:

 

 

Need Help
 
Do you have questions about Word, Excel, Access, Web Design, or computers in general? Just ask us anything you'd like. Click here for assistance.
 

Get Free Tips & Tricks
 

Join our mailing list today and get information on our Free Tips & Tricks Newsletter including free video tutorials, eBooks, live seminars, and more.

Email:
Name:
Type in the word to the left:
 
Your email will be kept 100% safe and will never be given to 3rd parties.

Subscribe to our RSS FeedWhat's This?

Facebook  Twitter  RSS  hide  help

599CD Home   |   Learn More   |   What's New?   |   Contact Us   |   Free Demo   |   FAQs   |   Order Now   |   Affiliate Program   |   TechHelp   |   MYOLP   |   Jobs   |   Downloads   |   Handbooks  (Text)   |    Mailing List   |   Lost Passwords   |   Referral Program   |   Online Poll   |   Corporate, Educational, Government, Non-Profit Sales   |   Message Forums   |   Testimonials   |   Privacy Policy   |   Free Gift CDs   |   Consulting Services   |   Waiting List   |   RSS Feed   |   Tips & Tricks