hi,
I need help! Please!
I have a textbox in a report that gets its field list from a query (qryDrawing). I do not know the proper syntax to reference the query field.
I am trying to do something like this:
=IIf(qryDrawing.[FIELD] = SA","YES","NO")
And I would like to set [FIELD] to the value of the combo box in my main form. (that is, [FIELD] = [Forms]![frmName]![cboName]).
So I tried doing this:
=IIf(qryDrawing.[Forms]![frmName]![cboName])="SA","YES","NO")
but it doesn't recognize qryDrawing. What is the syntax for this?
I hope this made sense.
Thank you so much in advance.
I need help! Please!
I have a textbox in a report that gets its field list from a query (qryDrawing). I do not know the proper syntax to reference the query field.
I am trying to do something like this:
=IIf(qryDrawing.[FIELD] = SA","YES","NO")
And I would like to set [FIELD] to the value of the combo box in my main form. (that is, [FIELD] = [Forms]![frmName]![cboName]).
So I tried doing this:
=IIf(qryDrawing.[Forms]![frmName]![cboName])="SA","YES","NO")
but it doesn't recognize qryDrawing. What is the syntax for this?
I hope this made sense.
Thank you so much in advance.