I know there is a simple solution with Report Expert that is escaping me. If a data field has multiple possible values and you want to select that data field only if it DOES NOT contain one of the values, what is the formula?
The Select Expert, rather than the Report Expert?
The select expert contains both the verb phrases "is one of"
and "is not one of".
The latter creates a formula line like
not ({YourTable.YourField} in ["Dog", "Cat"])
Malcolm
Malcolm, this does not give me what I want. Let me give you an example:
Data Field called Treatment can contain one or many of the following: Vaccine, Fecal, Bath, Treatment, etc. I only want to see those records that DO NOT CONTAIN "Vaccine" and in addition, I don't want to see the records that contain Fecal, Bath, Treatment, etc. In other words, I only want the records that are Blank for the word vaccine and while this data field may have other values in treatment, I don't want to see those records nor do I want them counted. It is a null for vaccine, but don't show me anything else.
Your question was clearer until you started talking about blank and null. Let me try:
You have a text field that contains a list of words, and you have a target list of words to use as criteria. You want to exclude any record whose text field has any one of the target words. Is that right?
If so the following record selection formula would work, using your list of words and your field name:
Not (
"Vaccine" in {field} or
"Fecal" in {field} or
"Bath" in {field} )
Ken Hamady
Is there any easy way to indicate that you want to look at a field if it is "blank" without listing all the values that are possible in that field?
Tried your formula and still not getting what I need. You have been so patient and helpful, let me try with the business description. In my database I have a field called Treatment that can have several variables (Vaccine, bath, fecal, etc.) When an animal comes in I may give them a Vaccine AND Bath AND Fecal, or just a Vaccine, or just a Bath, etc. (any combination). I want to pull up the records for animals that have never had a vaccine. If they have had a bath, fecal, etc., I don't care and don't want to show that data. I want the report to ignore all the variables in the field treatment except if vaccine is missing and those are the only records I want to see.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.