Q
QB
I am trying to render a query a little more flexible by making it first check
is a given form is open, if so use it's value as a filter else show all the
records, but am having problems. Below is the WHERE clause (which isn't
working)
WHERE
(((Year([qry_rpt_accrual01].[dtStatut]))=IIf(IsOpen("frm_rpt_Accrual")=False,"*",(Year([qry_rpt_accrual01].[dtStatut]))<=[Forms]![frm_rpt_Accrual]![cbo_anneefltr])));
It always prompt for the [Forms]![frm_rpt_Accrual]![cbo_anneefltr] value????
I have validated the IsOpen function does work properly (returning
True/False).
Thank you for the helping hand!
QB
is a given form is open, if so use it's value as a filter else show all the
records, but am having problems. Below is the WHERE clause (which isn't
working)
WHERE
(((Year([qry_rpt_accrual01].[dtStatut]))=IIf(IsOpen("frm_rpt_Accrual")=False,"*",(Year([qry_rpt_accrual01].[dtStatut]))<=[Forms]![frm_rpt_Accrual]![cbo_anneefltr])));
It always prompt for the [Forms]![frm_rpt_Accrual]![cbo_anneefltr] value????
I have validated the IsOpen function does work properly (returning
True/False).
Thank you for the helping hand!
QB