bonjour a tous. moi j'ai un bouton dans un formulaire qui ouvre un autre formulaire. comment je fais pour lui dire que quand il rentre dans le formulaire il doit fermer la fenetre precedente?
moi j'ai fais ce code mais il me dit que l'objet que je cherche il est fermè
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 Private Sub Comando71_Click() On Error GoTo Err_Comando71_Click DoCmd.Close Dim stDocName As String Dim StLinkCriteria As String stDocName = "uscite_comande_ss" Form_Menu_SS.IDContatto = Me.Lista_clienti.Value DoCmd.OpenForm stDocName, , , StLinkCriteria Forms!uscite_comande_ss!Nome = Form_Selezione_cliente.Lista_clienti.Column(1) Forms!uscite_comande_ss!Cognome = Form_Selezione_cliente.Lista_clienti.Column(2) Forms!uscite_comande_ss!IDContatto = Form_Selezione_cliente.Lista_clienti.Column(0) Exit_Comando71_Click: Exit Sub Err_Comando71_Click: MsgBox Err.Description Resume Exit_Comando71_Click End Sub
Partager