T
tcb
This is my where clause:
WHERE qry_Preferred_ADD.A_City LIKE " & "'*" & Me.txt_City & "*'" & "
AND tbl_Person.P_PersonType_k='O' AND " & strWhereSector
etc. If they enter a city, all rows that have a city are returned.
If they do not enter a city all rows with any city are returned.
That's okay.
The problem is when no city is entered in txt_City. I want it to
return all row with cities and all row that are null. But I don't
want it to return nulls when a city is entered in txt_City.
WHERE qry_Preferred_ADD.A_City LIKE " & "'*" & Me.txt_City & "*'" & "
AND tbl_Person.P_PersonType_k='O' AND " & strWhereSector
txt_City like "saint" that will return "Saint Paul", "Saint Louis"From an unbound form a user can enter part of a text string in
etc. If they enter a city, all rows that have a city are returned.
If they do not enter a city all rows with any city are returned.
That's okay.
The problem is when no city is entered in txt_City. I want it to
return all row with cities and all row that are null. But I don't
want it to return nulls when a city is entered in txt_City.