Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changed with code, onchange event not triggered

Status
Not open for further replies.
Oct 6, 2002
60
US
Hello all, I could really use some help on this one. I have a text box that is changed using code and I want the color of the text to change depending whether the number is positive or negative. the problem is, apparently the onchange event does not fire if it is changed by code. does anyone know of a work-around for this.

Thanks in advance for your help.
 
Hi!

Try this:

YourTextBox = YourValue
Call YourTextBox_Change

hth
Jeff Bridgham
bridgham@purdue.edu
 
I may not understand what you are suggesting but called a function with "yourTextBox_Change" in it and I get an error - cannot find "YourTextBox_Change"

Thanks,
Ryan
 
Hi Ryan!

You must replace YourTextBox with the actual name of your text box. Assuming you are in the same form, this will call the change procedure of the text box in question. This will work for a combo box also.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top