W
Wendymel
Help! I have created a form with 5 seperate combo boxes designed to filter a
list in a subform either seperately or in combination. Three of them work
fine, but the other two do not. The problem is that the value could
potentially be blank in the column the combo box is set up to recognize.
For example:
Combo box name: cboProjectNumberChoice
Row Source: SELECT ProjectNumber FROM tblProjectNumber
ORDER BY [ProjectNumber];
tblProjectNumber contains all current project number in the DB with the the
user to add a new one. The problem is that a record can be added to the DB
and the Project Number may not be assigned for weeks after. Therefore the
record will show up in the list, but may not have a Project Number.
I still want the user to be able to filter the list by Project Number and I
can not get it to work. The filter does nothing.
All the working filters have the same type of row source in them. For
example the location combo box has a working filter:
Combo box name: cboLocationChoice
Row Source: SELECT Location FROM tblLocation ORDER BY [Location];
The subform is generated by a record source that is a Query. The query has
a condition in it for the Location that looks like this:
IIf(IsNull([Forms]![frmProjectList]![cboLocationChoice]),[Location],[Forms]![frmProjectList]![cboLocationChoice])
I have tried every kind of condition I know of to get the ProjectNumber
filter to work. Can anyone help me? I have a deadline of the end of this
week.
Thanks!
list in a subform either seperately or in combination. Three of them work
fine, but the other two do not. The problem is that the value could
potentially be blank in the column the combo box is set up to recognize.
For example:
Combo box name: cboProjectNumberChoice
Row Source: SELECT ProjectNumber FROM tblProjectNumber
ORDER BY [ProjectNumber];
tblProjectNumber contains all current project number in the DB with the the
user to add a new one. The problem is that a record can be added to the DB
and the Project Number may not be assigned for weeks after. Therefore the
record will show up in the list, but may not have a Project Number.
I still want the user to be able to filter the list by Project Number and I
can not get it to work. The filter does nothing.
All the working filters have the same type of row source in them. For
example the location combo box has a working filter:
Combo box name: cboLocationChoice
Row Source: SELECT Location FROM tblLocation ORDER BY [Location];
The subform is generated by a record source that is a Query. The query has
a condition in it for the Location that looks like this:
IIf(IsNull([Forms]![frmProjectList]![cboLocationChoice]),[Location],[Forms]![frmProjectList]![cboLocationChoice])
I have tried every kind of condition I know of to get the ProjectNumber
filter to work. Can anyone help me? I have a deadline of the end of this
week.
Thanks!