I have a filter form for a query. The intent is to filter the query for input into a report.
It works except for one item: any value in the originating table wich has no value, ie. a box which has not been given any data. It automatically filters out data that does not contain a value. This would not be a problem except i will be having multiple filter criteria and several of the columns have nearly no data in them.
The code is like this:
Query criteria:
Like IIf(IsNull([Forms]![FilterForm:304]![cboOfficlFaze1]),[Official Phase],[forms]![FilterForm:304]![cboOfficlfaze1]) Or IIf(IsNull([Forms]![FilterForm:304]![cboOfficlFaze2]),[Official Phase],[forms]![FilterForm:304]![cboOfficlfaze2]) Or IIf(IsNull([Forms]![FilterForm:304]![cboOfficlFaze3]),[Official Phase],[forms]![FilterForm:304]![cboOfficlfaze3])
With cboOfficlFaze# being a combo box which has a set of values, including a selectable null. Its default value is null.
The combo box also has a macro which it refers to when AfterUpdate calling an
It works except for one item: any value in the originating table wich has no value, ie. a box which has not been given any data. It automatically filters out data that does not contain a value. This would not be a problem except i will be having multiple filter criteria and several of the columns have nearly no data in them.
The code is like this:
Query criteria:
Like IIf(IsNull([Forms]![FilterForm:304]![cboOfficlFaze1]),[Official Phase],[forms]![FilterForm:304]![cboOfficlfaze1]) Or IIf(IsNull([Forms]![FilterForm:304]![cboOfficlFaze2]),[Official Phase],[forms]![FilterForm:304]![cboOfficlfaze2]) Or IIf(IsNull([Forms]![FilterForm:304]![cboOfficlFaze3]),[Official Phase],[forms]![FilterForm:304]![cboOfficlfaze3])
With cboOfficlFaze# being a combo box which has a set of values, including a selectable null. Its default value is null.
The combo box also has a macro which it refers to when AfterUpdate calling an