Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>how do you pass variables between 2 different forms. The problem I am having is that I have 2 form each with a private data session. I want to assign the current record number to a variable and pass that to the other form. any suggestions. thanks fot the help.
The line of code that calls the second form should look like this
'Do Form Form2 WITH VARIBLE'
Replace 'VARIBLE' with either RecNo() or the ID of the record you want to pass
In the INIT Event of the second form the first line should look like this
Parameters VaribleName
You can then either use a seek/select query or go commands to find the record
Hope this helps
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