Greetings,
My issue is simple. I am making a query interface for my database - so end users can easily extract what they want.
I have several controls that may or may not be null when I run the query. I am using the following as my Criteria (which may be flawed):
IIf([Forms]![F_QUERY]![A_Combo_Box_Control] is null, [T_SITE]![Station_ID], [Forms]![F_QUERY]![A_Combo_Box_Control])
In essence I am saying if the control that is a criteria for this FIELD is null, use the value from the TABLE as the criteria - hence it is accepting all records. I am sure I don't have any data type mismatches either. This worked for many different FIELDS until I ran into one that had null values in the TABLE itself.
The query won't return any of the records that have null values on the TABLE in this FIELD. In essence, Access is telling me that:
Null does not equal Null ?
There must be a better way to do this - or maybe some work around.
Thanks in advance,
-Mark
My issue is simple. I am making a query interface for my database - so end users can easily extract what they want.
I have several controls that may or may not be null when I run the query. I am using the following as my Criteria (which may be flawed):
IIf([Forms]![F_QUERY]![A_Combo_Box_Control] is null, [T_SITE]![Station_ID], [Forms]![F_QUERY]![A_Combo_Box_Control])
In essence I am saying if the control that is a criteria for this FIELD is null, use the value from the TABLE as the criteria - hence it is accepting all records. I am sure I don't have any data type mismatches either. This worked for many different FIELDS until I ran into one that had null values in the TABLE itself.
The query won't return any of the records that have null values on the TABLE in this FIELD. In essence, Access is telling me that:
Null does not equal Null ?
There must be a better way to do this - or maybe some work around.
Thanks in advance,
-Mark