Link to home
Start Free TrialLog in
Avatar of Jenkins
JenkinsFlag for United States of America

asked on

adding values in textboxes MS Access

I have an access form with 4 textboxes on it formatted as currency.

textbox1
textbox2
textbox3
textboxTOTAL

The user will enter dollar values in the first 3 textboxes and I want the total displayed in textboxTOTAL.  If the user makes a change to any of the values,  I want the total to be recalculated.  And how do I avoid confusing things such as when a total already exists in textboxTOTAL and the user makes a change to any of the texboxes that is not immediately reflected in textboxTOTAL.

For example, let's say these are currently the textbox values:

textbox1                  $1000
textbox2                  $5000
textbox3                  $4000
textboxTOTAL        $10000

Now let's say a user deletes the data in textbox1.   How do I avoid things like the following:

textbox1                  
textbox2                  $5000
textbox3                  $4000
textboxTOTAL        $10000    <----value is still showing $10K even  

So I'm also looking for the proper way to handle recalculations. Thank you.
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jenkins

ASKER

Thank you.