July 26, 200619 yr Alright, I've been turning to here more lately than I'd like, but I've just been having brain melt-downs... must be the newborn-lack-of-sleep thing. Alright, it's a simple thing, really. I have a script that wants to find for a record that contains a ValueA in a FieldA and omit the records that contain ANYTHING in FieldB. The best way I can think to describe it is: If FieldA == VariableA AND IsEmpty(FieldB) Display records Seems simple. What everything seems to be doing is evaluating the first part (FieldA == VariableA), displaying results then somehow displaying every record again (including what was filtered out already) and evaluating the second part, leaving in results that don't meet the first part. Not sure what to do here. Can't imagine why this is so hard for me...
July 26, 200619 yr The general syntax for building a Find is to put the criteria that you want found first, followed by the criteria that you want omitted (this order is important). In your case, you might use a script to build the criteria, like this: Enter Find Mode[] Set Field [ FieldA ; $variableA ] New Record/Request Set Field [ FieldB ; "*" ] Omit Record Perform Find []
July 26, 200619 yr Perhaps I am not reading this correctly, but I see: Enter Find Mode [ ] Set Field [ FieldA ; ValueA ] Set Field [ FieldB ; "=" ] Perform Find [ ]
July 27, 200619 yr Author For the record (and future searches), I ended up going with Ender's suggestion (mentally flipped a coin) and it worked beautifully. Thanks a lot both of you!
Create an account or sign in to comment