×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

text box event

text box event

text box event

(OP)
I have a text box on a form that is formatted as currency. This text box actually shows the total for someother text boxes that get the data from the user. Since the total text box get updated through the code, AfterUpdate event is not triggerd. I need to do something when this control value has changed. Is there any event like beforeUpdate or AfterUpdate that get triggered when a textbox value is changed programatically?

Thanks.

RE: text box event

You can generate this TotalTextBox.Value through the change event of each of the source textboxes.  In each source textboxes change event, assign a new value to the TotalTextBox.Value.  You would basically have the same piece of code for each textbox.

Now, you can raise an event trigger for the TotalTextBox in order to fire the AfterUpdate event.  You need to look through the VBA help files for this one as I do not remember how this works.

Chris Foley
Midland, TX

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources