Reference a Popup field

B

Brian J

In my main form (frmMain) there are several text fields that utilize the
hyperlinks option. Each hyperlink brings up a different popup form which are
all copies of each other with the only difference being the content of a
label. Ideally I would like to utilize a single popup form and programically
change the label to reflect some type of phrase indicative to the text box in
frmMain. Is there a easy way to do this?
 
A

Arvin Meyer [MVP]

In your code opening the popup, change the Caption property of the label.
 
D

Daryl S

Brian -

I haven't used the hyperlinks, but from the form standpoint I've used this
trick. On the main form, add a textbox (hidden). Then you can put the
phrase you want on the pop-up form in that hidden textbox. You use one
pop-up form that always uses this hidden text field for the label.

You need to populate this textbox before opening the pop-up form. I don't
know if you have control within the hyperlink, but if not, you may want to
populate the textbox using the GotFocus of each of the fields with the
hyperlink.

Maybe someone else has a better way?
 
B

Brian J

Caption - yes. I have that. What I would like to ask if for an example of
the code in the popup menu (on Open I believe) that references the text box
in frmMain. Any thoughts?
 

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