Hi,
I've added a button to my form and in the On Click event I've added some code (by clicking the "...").
Here is my code:
I can't understand why nothing happens when I click the button. No message boxes and no report.
Thanks for your time,
I've added a button to my form and in the On Click event I've added some code (by clicking the "...").
Here is my code:
Code:
Option Compare Database
Private Function DisplayReport()
DoCmd.OpenReport List0, acViewNormal
MsgBox "TEST"
End Function
Private Sub Command3_Click()
Call DisplayReport
MsgBox "DEBUG"
End Sub
I can't understand why nothing happens when I click the button. No message boxes and no report.
Thanks for your time,