subform calls

P

PeterM

I have formA which contains subformB. I can call a subroutine formA from
subformB by doing:

forms!formA.subroutine

Which works great. However, I can't call a subroutine in subformB from FormA

forms!formB.subroutine

Generates the error "2450 Access can't find the form 'FormB' referred to in
a macro expression or Visual Basic Code"

the subroutines in formA and subformB are public subroutines.

What am I doing wrong? Any help would be appreciated.
 
R

Rick Brandt

PeterM said:
I have formA which contains subformB. I can call a subroutine formA
from subformB by doing:

forms!formA.subroutine

Which works great. However, I can't call a subroutine in subformB
from FormA

forms!formB.subroutine

Generates the error "2450 Access can't find the form 'FormB' referred
to in a macro expression or Visual Basic Code"

the subroutines in formA and subformB are public subroutines.

What am I doing wrong? Any help would be appreciated.

The reference for a form being displayed inside a subform control is...

Forms!ParentFormName!SubFormCONTROLName.Form
 
Top