Hello all!
I've placed a button in a form and in the Property Sheet, Event, On Click I've selected Event Procedure.
I've tried a simple routine with just a MsgBox, that goes:
Code:
Private Sub NewReg_Click()
MsgBox ("hello")
End Sub
When I click the button in the Form View, it works and the messege appears. But I want the procedure to operate with some fields that I entry in the form. When I try to call a field of the form in the routine:
Code:
Private Sub NewReg_Click(Num_Entries)
MsgBox ("hello")
End Sub
I get the following error when I click the button:
procedure declaration does not match description of event or procedure having the same name
Does anybody know what the problem might be?
Thank You