Imagine if you will, a beautifully designed and normalised database application.
OK that's enough. On to my database application!
I envisage a form with multiple combo-boxes feeding a query so that the operator can activate the query (it feeds a report not that that matters) with the selections ANDed together and just see the required result. I also imagine a check box associated with each combo-box to indicate that any and all values are required in this field. I can get the combos to work fine but can't re-set to all. I am using the dreaded IIF statement in the Criteria box of the Query design view as follows.
[CODE=vb]IIf([Forms]![frmReports]![chkStatusAll]=False,[Forms]![frmReports]![cboStatus],Not Null)[/CODE]
frmReports is the form where the combos and checks are
chkStatusAll is one of the check boxes
cboStatus is one of the combo boxes.
It would be ideal if I could just not have a "FalsePart" for the IIF statement but I have to have both.
Any Ideas??
'AveAGoodWeeken d
Jim
OK that's enough. On to my database application!
I envisage a form with multiple combo-boxes feeding a query so that the operator can activate the query (it feeds a report not that that matters) with the selections ANDed together and just see the required result. I also imagine a check box associated with each combo-box to indicate that any and all values are required in this field. I can get the combos to work fine but can't re-set to all. I am using the dreaded IIF statement in the Criteria box of the Query design view as follows.
[CODE=vb]IIf([Forms]![frmReports]![chkStatusAll]=False,[Forms]![frmReports]![cboStatus],Not Null)[/CODE]
frmReports is the form where the combos and checks are
chkStatusAll is one of the check boxes
cboStatus is one of the combo boxes.
It would be ideal if I could just not have a "FalsePart" for the IIF statement but I have to have both.
Any Ideas??
'AveAGoodWeeken d
Jim
Comment