Voici mon code

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
If [Délai] = "Délai 1er ECG - appel CHUS" Then
    DoCmd.GoToControl "Délai 1er ECG - appel CHUS"
    DoCmd.ApplyFilter , "[Délai 1er ECG - appel CHUS] <> Null"
    DoCmd.RunCommand acCmdSortAscending
    MsgBox [Texte26]
[Texte26] est calculé et mise à jour après "ApplyFilter" et "RunCommand acCmdSortAscending"

Par contre "MsgBox [Texte26]" est lancé avant que les 2 commandes précédentes aient terminé. Il ne m'affiche donc rien

Avez vous une solution pour moi?