PDA

Click to See Complete Forum and Search --> : Problem usin "NOT IN" syntax


victor64
Feb 14th, 2009, 06:29 AM
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

jggtz
Feb 14th, 2009, 12:27 PM
Try :

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

victor64
Feb 14th, 2009, 06:19 PM
It worked

Thank You.