Calling a procedure from another form

  • Thread starter Thread starter Ted
  • Start date Start date
T

Ted

Hi all,

I've done this before but for some reason I can't get the syntax right. I
have a public procedure in a form that I'm trying to call after the user
clicks a button on another form.

The form that has the button is frmMain_CommPkg. The form that has the
procedure is called frmNJForms. Any ideas?

Thanks in Advance
Ted
 
Hi Ted

Try:
Call Forms("frmNJForms").ProcedureName

Make sure that ProcedureName is declared Public in the form's class module.
 
Or
Call Form_frmNJForms.ProcedureName

--

Ken Snell
<MS ACCESS MVP>

Graham Mandeno said:
Hi Ted

Try:
Call Forms("frmNJForms").ProcedureName

Make sure that ProcedureName is declared Public in the form's class
module.
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

Ted said:
Hi all,

I've done this before but for some reason I can't get the syntax right. I
have a public procedure in a form that I'm trying to call after the user
clicks a button on another form.

The form that has the button is frmMain_CommPkg. The form that has the
procedure is called frmNJForms. Any ideas?

Thanks in Advance
Ted
 
Back
Top