M
Maxwell
Hello all, grateful for some help....
I have a form (FormStudentManagement), with a subform (FormLNKBEDSTD). On
the subform is a control (LNKBEDSTDCategory) which can only be set to two
options ("Private" and "Homestay").
I have a macro attached to a button on the subform which opens a different
form depending on the setting on the control. It all works beautifully when
I open the subform on its own, but the referencing falls down when it is
embedded in the parent form.
A quick google has informed me that referencing rules change when a subform
is involved, and solutions have been put forward to counter this. I have
tried them to no avail. My current macro condition is:
[Forms]![FormStudentManagement].[FormLNKBEDSTD].[Form]![LNKBEDSTDCategory]="Homestay"
Which causes the following error message:
Microsoft Office Access can't find the form '|' referred to in a macro
expression of Visual Basic code.
Now, this subform IS on a tab, but I am assured that that doesn't come into
the equasion. I have tried several permutations of the above to no avail and
would be grateful for an expert opinion.
Best,
Max
I have a form (FormStudentManagement), with a subform (FormLNKBEDSTD). On
the subform is a control (LNKBEDSTDCategory) which can only be set to two
options ("Private" and "Homestay").
I have a macro attached to a button on the subform which opens a different
form depending on the setting on the control. It all works beautifully when
I open the subform on its own, but the referencing falls down when it is
embedded in the parent form.
A quick google has informed me that referencing rules change when a subform
is involved, and solutions have been put forward to counter this. I have
tried them to no avail. My current macro condition is:
[Forms]![FormStudentManagement].[FormLNKBEDSTD].[Form]![LNKBEDSTDCategory]="Homestay"
Which causes the following error message:
Microsoft Office Access can't find the form '|' referred to in a macro
expression of Visual Basic code.
Now, this subform IS on a tab, but I am assured that that doesn't come into
the equasion. I have tried several permutations of the above to no avail and
would be grateful for an expert opinion.
Best,
Max