Variable text on Buttons

branston

Registered User.
Local time
Today, 12:20
Joined
Apr 29, 2009
Messages
372
Hi,

I have set up some buttons on a continuous form. I wanted the button to show text on it, and for that text to be a field from the form its linked to.

To do this i put a text box on top of the button. It works, and ive set up the code behind the buttons to use that variable as well. The only problem is, is that when you 1st go into the form the top button has no text on it. This is because the SetFocus is obviously set to the button, so the text box is lost behind it. Also, if you click on a button it selects the text box, rather than pressing the button.

Im so close to having it working, do any of you have any idea how to just tidy it up (or if theres a much easier way to link the button text to a variable?)

Thank you!
 
Dont worry - I got around the problem with deleting the button, adding the code to the on click event of the text box and making the text box look like a button. Sorted!
 
good show!
 

Users who are viewing this thread

Back
Top Bottom