Can't seem to call subroutine of a subform

rockman

Senior Member
Local time
Today, 03:29
Joined
May 29, 2002
Messages
190
I am trying to call a procedure that is located in my subform module from my main form. I keep getting
Error '2465': Application-defined or object-defined error.
Here is my set-up:
Form: frmSchedule
SubForm: subDetails
Subroutine Name: UpdateDays

This is the call from the main form:
Code:
Private Sub Button1_Click()
   Forms!frmSchedule!subDetails.Form.UpdateDays
End Sub
The subroutine runs fine when called from within the subform.

Any thoughts?
Jeff
 
As this message refers to a non-existent name, have you checked for mis-spelt names or rogue spaces in your call or on the subform?
 
Thanks for the reply, cogent. I think the problem was I didn't have UpdateDays defined as a PUBLIC sub.

Jeff
 

Users who are viewing this thread

Back
Top Bottom