Explication du code suivant
Bonjour, voilà, j'ai ce code, mais je ne sais pas l'expliquer!!! on me l'a donné comme ça en me disant, "Ca marche" mais moi j'aimerai savoir a quoi correspond le 'Dim", le 'strCrit'... enfin tout, car je n'y connais rien en VBA!! lol
Merci!!
Code:
1 2 3 4 5 6 7 8 9
| Private Sub Commande115_Click()
Dim strCrit As String
strCrit = "[Local Reference]='" & Me.[Local Reference] & "'"
DoCmd.OpenForm "actions_history", , , strCrit ' ouvre formulaire filtré sur local reference
Forms!actions_history![Local Reference].DefaultValue = Me.[Local Reference]
Forms!actions_history![Local Reference].DefaultValue = """" & Me.[Local Reference] & """"
End Sub |