Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi Steve....
Not a complicated situation at all. Essentially, you need to return a value from a called form. Anytime you do this, the called form should be model. So, the whole business of looping through the form's collection with the For Each construct constitutes little more than a complete waste of time<s>.
So, here is what to do:
1. Set the WindowType Property of the note form to Modal.
2. Create a custom property on the note form called strNote
3. In the form that has the note, set the controlsource of the control you are
using to capture the note with: Thisform.strNote
4. In the Unload of the note form, issue this code: Return This.strNote
How does the code look in the first form?:. Most likely, you will have a command button to launch the form. So, you may have code like this:
Local strNote
Do Form frmNote To strNote
This.parent.txtNote.Value = strNote
Hope this helps...
>I have two forms open at one time. I type in a note on the one form and close it. How can I get a text box on the remaining form to populate with the note I typed in on the form I closed. Thanks.
>
>God Bless,
>S. Dyke
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement