Do you want a find for all records in the interval, omitting "void" or do you want a portal listing these records by that criteria?
As a Script that finds the records: Use a pair of global date fields, gDate1, gDate2 to specify the date interval.
Enter Find Mode
Set Field [SalesOrder::OrderDate ; SalesOrder::gDate1 & "..." & SalesOrder::gDate2 ]
Set Field [SalesOrder::Status ; "Void"]
Set Error Capture [on]
In find Mode, the Omit Record is equivalent to clicking the Omit button when doing a manual find.
Thanks. It works. Yes, I want all records, except "void" status, in the interval. Your script does what I need.