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
|
Public Function projetouvert() As Integer
' Renvoie la valeur du formulaire qui est ouvert
If FormulaireEstChargé("F_projet") Then
If OngletEstChargé = "Liste des projets en cours" Then
projetouvert = [Forms]![F_projet]![SF_liste des projet mode bouton].[Form]![# projet]
End If
If OngletEstChargé = "Liste des projets expédiés" Then
projetouvert = [Forms]![F_projet]![SF_liste des projet mode bouton].[Form]![# projet]
End If
If OngletEstChargé = "Liste des projets fermés" Then
projetouvert = [Forms]![F_projet]![Vue projet annulé].Form![# projet]
End If
End If
If FormulaireEstChargé("clientstat") Then
projetouvert = [Forms]![ClientStat]![ClientStat subform].[Form]![# projet]
End If
End Function |