Hi There, I know that this is a common thread and I have managed to determine the syntax etc, but I am still having difficulty in passing the value of an Option Group into a select query and wonder if somebody might be able to shine some light on what is happening.
I have a Form which contains an option group with two values (1 & 2), which has a default value of 1 and is called [Frame54].
I have fed the value of the Option Group into a the criteria line of a select query using the following syntax:
=[Forms]![frmMergeWorkMenu]![Frame54]
The query runs fine, but only if the corresponding form is open, which kind makes sense, but the problem I have is that the open version of my form exists as a sub-form in a navigation menu, so when I run the query with the navigation menu open, I am prompted for a parameter value for [Forms]![frmMergeWorkMenu]![Frame54].
My question is, do I need to reference [Frame54] through the navigation menu (I suspect I do)? If so what is the syntax I should be using?
I have tried the following, but to no avail:
=[Forms]![frmMain].[Form]![NavigationSubform]![frmMergeWorkMenu]![Frame54]
and
=[Forms]![frmMain]![NavigationSubform].[Form]![frmMergeWorkMenu]![Frame54]
but neither work and I am struggling to find any reference material regarding subform reference online, so any suggestions would be very welcome.
S