Hi,
I have problem with my form for searching records. It contains sub form which open full table with all records and combo boxes for searching fields. I have problems with date search combo box. if all date fields are filled everything is fine, but if i have empty date field than that record containing empty date field is added to search results no mater what field i am searching with. my after update event for searching records is macro containing where conditions ="[Fieldname] = " & "'" & [Screen].[ActiveControl] & "'". my query criteria for date field is Like "*" & [forms]![Formname].[comboname] & "*" or is null. what i get when i search is thisin this example searching was done with first combo box entering value 10 and I get first two records which supposed to be and third record with empty date field which is added but aint supposed to be shown. same thing happens if i search with date field or any other. i get search results plus record with empty date field.
thanks
is been send too pcreview too not answer. here is the link https://www.pcreview.co.uk/search/112657/?c[users]=unknownuser&o=date