Attendre un click pour poursuivre sur un autre formulaire

lezardjet Messages postés 77 Date d'inscription mercredi 17 décembre 2003 Statut Membre Dernière intervention 9 mai 2006 - 13 mai 2004 à 13:02
lezardjet Messages postés 77 Date d'inscription mercredi 17 décembre 2003 Statut Membre Dernière intervention 9 mai 2006 - 14 mai 2004 à 08:55
Bonjour
Je souhaite fairer patienté mes calkuls tant que on ne clike pa sur un autre formulaire qui s'ouvre

jimagine kil fo ke je fasse une fonction...
mais je ne sait pas appelléla fonction

je met mon code..

j'ouvre un form et je voudrai le fermer dés k'il y a un click

si kelkun a une solution ;-)

merci


Private Sub Commande2_Click()

'declaration
...
'ouverture base et création base active pour sauvegarder modification
...

'------------------function choix coeff-----------------------
'mise a false des indik
... 
'ouverture form choix_coeficient
'actualiser
DoCmd.Requery ""
'ouvrir form choix du coef
DoCmd.OpenForm "choix_du_coefficient_multi", acNormal, "", "", , acNormal

Private Sub choix_du_coefficient_multi_Click()
If en_attente_du_click = True Then

End If
End Sub

'fermeture du form choi du coef
DoCmd.Requery ""
DoCmd.Close acForm, "choix_du_coefficient_multi"

End Sub
 

2 réponses

Vb Lover Messages postés 221 Date d'inscription vendredi 30 novembre 2001 Statut Membre Dernière intervention 13 février 2010 5
13 mai 2004 à 22:08
Si tu attends un clic dans une forme, il n'y a qu'une solution :

Private Sub Form_Click()
' et voilà, tu peux lancer tes calculs ici !
end sub


VB Lover
0
lezardjet Messages postés 77 Date d'inscription mercredi 17 décembre 2003 Statut Membre Dernière intervention 9 mai 2006
14 mai 2004 à 08:55
ok merci...
0
Rejoignez-nous