• Not like Statement working (2003)

    • This topic has 9 replies, 4 voices, and was last updated 17 years ago.
    Author
    Topic
    #451038

    I am unable to get the ‘Not Like’ statement working so that the query excludes the row with line with the CR # 1042447 (i.e. highlighted in black). See attachments for details.

    I don’t mind want is used in the query as long as this line is not included in query.
    It is not possible to simply remove this row as this is not an option.

    Viewing 1 reply thread
    Author
    Replies
    • #1109465

      So that those of us who don’t open attachments can help, can you paste a simplified version of your query to show what you are trying to do to attain the goal of excluding that line?
      thx
      Pat

    • #1109549

      Your query has “not Like “*EVPN*” , but the row you want to exclude does not contain EVPN.

      Can you explain what you are trying to do?

      • #1109593

        Hello,

        what l am trying to do is to remove the row that contains the words :

        CR # 1042447

        Nothing more nothing less. All other rows are to be left, it is just that row which l need to exclude in the query. I hope that makes things a bit clearer

        • #1109607

          Hi, add the following criteria to the CR # field:
          Str([CR #]) Not Like “*1042447*”

          • #1109642

            I tried making that change but now appear to get an error, see attached.

            • #1109644

              Replace Str([CR #]) Not Like “*1042447*”
              with Str([CR#]) Not Like “*1042447*”

              i.e. remove the space between CR and # the field name does not have a space in it.

              Is the CR# field a number?

              If so you could just put 1042447 on the criteria line instead.

            • #1109645

              Hello,

              This does not work either , as not it returns lots of results!!

              But should only return 4 results, see attachment for details.

            • #1109646

              I don’t know how but this criterion has ended up on the third row rather than the second.
              Do you stll need the “not like “*EVPN*” in there?

            • #1109648

              that works great thanks

    Viewing 1 reply thread
    Reply To: Not like Statement working (2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: