Taking information form a label when clicked

barno_xvi

Registered User.
Local time
Today, 21:35
Joined
Aug 19, 2006
Messages
21
Right. I have a button that will create a label on another form, this button will display the name of something etc. I have also set the .OnClick procedure of any newly created label to a macro which opens up a new form. However I want to display information on this form that is revelant to the label clicked.

So far, the macro runs a function before opening the form.

My first idea was to use the filter on the OpenForm action in the macro to link the caption on the label to the information on the new form.

I then realised I had no way, in my knowledge, of how to retrieve the caption of the clicked label without giving it it's own procedure.

Please let me know if you would like some code or something to help, as I know I'm not the greatest at explaining :) and this is probably really confusing :D

Thanks in advance!!
 
Hi again. Another idea...

Is there anyway that there is code for say Me!Controls...<selected>?

- to take information from the "selected" control?
- and would this work for a label because I'm sure it is actually selected when it's clicked

Thanks
 

Users who are viewing this thread

Back
Top Bottom