Results 1 to 3 of 3

Thread: Problem usin "NOT IN" syntax

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2008
    Posts
    61

    Problem usin "NOT IN" syntax

    Hello,

    What is the proper syntax for searching using the NOT IN command, the IN sybtax works, but the NOT IN is not the proper syntax.


    IN Syntax:

    myaop29report.RecordSelectionFormula = "{AOP29.field2}in [ " & xyz & "]"

    NOT IN Syntax: Error Message (boolean or string expected)

    myaop29report.RecordSelectionFormula = "{AOP29.field2} not in [ " & xyz & "]"

    Thanks,

    Victor

  2. #2
    Frenzied Member
    Join Date
    May 2006
    Location
    some place in the cloud
    Posts
    1,886

    Re: Problem usin "NOT IN" syntax

    Try :
    Code:
    myaop29report.RecordSelectionFormula = "NOT ({AOP29.field2} IN [ " & xyz & "] )"

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2008
    Posts
    61

    Re: Problem usin "NOT IN" syntax

    It worked

    Thank You.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width