To Hide a Textbox based on other's Input

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am coding mechanical punches and using BMPs with their images.
Some of the punches have a angular chamfer that can be 75 or 90 degrees.

I want a textbox called "chamfer" to show on top of the BMP if the operation
will show on a previous textbox "Operation" as "FEX". On all other operation
codes, the chamfer is not used so no angular dimension shhould apear on top
of the BMP.

Thanks for any help
A. Soares
 
the following code will work as a "toggle" for Visible - true or false, as

Me!chamfer.Visible = (Me!Operation = "FEX")

the question is, where to run the code? if you're entering data in the
Operation control, then run the above code in the Operation control's
AfterUpdate event procedure. if the Operation value is, or may be, already
entered for that record in the form, then also run the code in the form's
Current event procedure.

hth
 
Back
Top