I had thought that if a procedure or function is designated as Public in code associated with a form, that other forms could activate the procedure or function as long as the form holding the public function was open. I am getting a" not defined" message when I try it.
very very simplified, here is basically what I am doing.
Form1:
Private Sub Command0_Click()
TEST ("message")
End Sub
Form2:
Public Function TEST(Z)
MsgBox Z
End Function
I am using a2007 with w7. What am I missing?