rockman
Senior Member
- Local time
- Today, 02:40
- Joined
- May 29, 2002
- Messages
- 190
This may be a stupid question but...
I have a form that opens a second form. I'd like to have the first form call a particular subroutine of the second form. Here's what I have:
Form1 Module
-----------------
DoCmd.Open "Form2"
Call SetupForm(Param1, Param2) 'This subroutine is in Form2
Form2 Module
-----------------
Public Sub SetupForm(Param1 as Long, Param2 as Long)
....
End Sub
This errors at the "Call" statement saying "Subroutine not defined".
Any thoughts?... Thx,
Jeff
I have a form that opens a second form. I'd like to have the first form call a particular subroutine of the second form. Here's what I have:
Form1 Module
-----------------
DoCmd.Open "Form2"
Call SetupForm(Param1, Param2) 'This subroutine is in Form2
Form2 Module
-----------------
Public Sub SetupForm(Param1 as Long, Param2 as Long)
....
End Sub
This errors at the "Call" statement saying "Subroutine not defined".
Any thoughts?... Thx,
Jeff