i have a form "frmA" inside this form i have a sub form "frmB" , these two forms are linked by a field "keynum"( master to child relationship)
the sub form "frmB" is in datasheet view .
On selecting a field "index" on "frmB" i wanted to open another from "frmC"
where by
So on the on click event of the field index on the frmB i wrote the following code
Expand|Select|Wrap|Line Numbers
- stDocName = "frmC"
- stLinkCriteria = " "[Index] = [Forms]![frmC].[form]!Index"
- DoCmd.OpenForm stDocName, acNormal, ,stLinkCriteria
But when it try it to access the same through frmA , it ask me to enter the parameters