To Hide a Textbox based on other's Input

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
 
T

tina

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top