Linking a Specific Subform Record to Another Form

G

Guest

Hello,
It's been a while since I created databases in Access and I am a little
rusty. I have a form with a continuous subform. Within the subform, I have a
button tied to a macro where the "Where Condition" reads
[subform_id]=[Forms]![subform_name]![subform_id].

When I run the macro from the subform within the main form, Access asks for
the Parameter Value. When I run the macro from the subform open by itself, it
runs beautifully.

I am chasing my tail. Any assistance is very much appreciated!!

Thanks,
~ Chris
 
S

Steve Schapel

Chris,

The [subform_name] form is not open, it is merely being displayed via
the avenue of the subform control on the main form. Therefore, Access
is unable to evaluate [Forms]![subform_name]![subform_id]. You will
need to do like this...
[Forms]![MainForm]![subform_name]![subform_id]
....or, as some would have it:
[Forms]![MainForm]![subform_name].[Form]![subform_id]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top