On what query is the report based?.
It's the query which is in the sample database. I've deleted the report because I couldn't get it to work. If you try it, set the report up based on the query in the sample, and hopefully you'll get the same problem (I use 'hopefully' in quite the opposite way to usual)
On my search form which runs a report based on a query, this is the SQL for said query:
SELECT tbl06AllLines.Plant, [Plant] & "-" & [TAG] & "-" & [No] AS UniqueID, tbl06AllLines.EquipmentNo, tbl06AllLines.Service, tbl06AllLines.ImpulseLineMaterial, tbl06AllLines.[P&ID No], tbl06AllLines.HydrocarbonsPresent, tbl06AllLines.Traced, tbl06AllLines.Lagged, tbl06AllLines.AdditionalAccess, tbl06AllLines.InstrumentType, tbl06AllLines.Comments, tbl06AllLines.RelatedEquipmentLocation, tbl06AllLines.FolderContainingPhotos, tbl06AllLines.DateOfInspection, tbl06AllLines.InsulationAction, tbl06AllLines.TracingAction, tbl06AllLines.MaterialAction, tbl06AllLines.TransitionAction, tbl06AllLines.DueDate, tbl06
AllLines.AdditionalAccessToBeInstalled
FROM tbl06AllLines
WHERE (((tbl06AllLines.ImpulseLineMaterial) Is Null) AND ((tbl06AllLines.HydrocarbonsPresent) Like "*" & [Forms]![F_SpecificCriteria]![txtHC] & "*") AND ((tbl06AllLines.Traced) Like "*" & [Forms]![F_SpecificCriteria]![txtTraced]) AND ((tbl06AllLines.Lagged) Like "*" & [Forms]![F_SpecificCriteria]![txtLag])) OR (((tbl06AllLines.HydrocarbonsPresent) Is Null) AND ((tbl06AllLines.Traced) Is Null) AND ((tbl06AllLines.Lagged) Is Null));
I tried combining it with OR but it still doesn't want to work. I'm sure I tried this same thing before and it worked almost to the way I wanted it.
I'm not sure how many null values are in the table in the sample so I don't know how ineffective this query will be, but hopefully you get the jist