C
CES
All,
I ask some really stupid questions but this is probably the stupidest...
I am trying to call a function from a button on a form however when I try to execute the code below I receive a compiler error - syntax error. I'm really sorry for the stupid question, but if anyone could give me some advice and guidance I would appreciate it. Thanks in advance. - CES
'Form Action
Private Sub Button1_Click()
fnTMP()
End Sub
'Function Called
Public Function fnTMP()
MsgBox(Now())
End Function
I ask some really stupid questions but this is probably the stupidest...
I am trying to call a function from a button on a form however when I try to execute the code below I receive a compiler error - syntax error. I'm really sorry for the stupid question, but if anyone could give me some advice and guidance I would appreciate it. Thanks in advance. - CES
'Form Action
Private Sub Button1_Click()
fnTMP()
End Sub
'Function Called
Public Function fnTMP()
MsgBox(Now())
End Function