A
aft3rgl0w
hey all, I have a query that displays the content of a cd. on the main form
i work with, the media form can be displayed as a subform of either
Forms!frmMain!subfrm or
Forms!frmMain!subfrmflt
In the criteria for one of the fields, it references a value on the media
form ([Text60])
this is how i'm trying to set the criteria:
"[Forms]![frmMain]!["
&iif(forms!frmmain!subfrmflt.visible=true,"subfrmflt","subfrm") & "]![Text60]"
basically throwing an iif in the middle to determine whether the floating
form is visible. I know it will work if i start with iif(...); however I am
trying to keep things as compact as possible. i don't get any errors using
the criteria above, however, nothing displays either. Is there a "correct"
syntax to how I want the criteria layed out, or do i need to use the "long"
form?
i work with, the media form can be displayed as a subform of either
Forms!frmMain!subfrm or
Forms!frmMain!subfrmflt
In the criteria for one of the fields, it references a value on the media
form ([Text60])
this is how i'm trying to set the criteria:
"[Forms]![frmMain]!["
&iif(forms!frmmain!subfrmflt.visible=true,"subfrmflt","subfrm") & "]![Text60]"
basically throwing an iif in the middle to determine whether the floating
form is visible. I know it will work if i start with iif(...); however I am
trying to keep things as compact as possible. i don't get any errors using
the criteria above, however, nothing displays either. Is there a "correct"
syntax to how I want the criteria layed out, or do i need to use the "long"
form?