getting info from subform

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a subform and I need to get the primary key off of the selected
subform. I want to do something like: Forms![main form]![Subform]![key]. The
only exception is that the key is not displayed on the subform. I know if you
say something like [key] it will get the key off of the selected record. How
do I do this for a subform.
 
The right syntax will be
Forms![main form name]![Subform name].Form[key]
And if you have a problem. then add the field to the form and change the
visible property of the field to false.
 

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

Back
Top