getting info from subform

D

Dan

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.
 
O

Ofer

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.
 
Top