Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selection Formula Not Working

Status
Not open for further replies.

LouieGrandie

Technical User
Mar 3, 2011
136
US
Have the following selection formula:

{MasterFile.Order In} = {?Order In Range} and{MasterFile.RepName} = {?Rep} and
(NOT IsNull({MasterFile.SelectionsOwner}) and {MasterFile.SelectionsOwner} in{?Owner}) OR (NOT IsNull({MasterFile.SubmittalsOwner}) and {MasterFile.SubmittalsOwner} in {?Owner}) OR(NOT IsNull({MasterFile.CalculationsOwner}) and {MasterFile.CalculationsOwner} in {?Owner}) OR (NOT IsNull({MasterFile.LayoutsOwner}) and {MasterFile.LayoutsOwner} in {?Owner} OR (NOT IsNull({MasterFile.CheckingOwner}) and {MasterFile.CheckingOwner} in {?Owner} OR (NOT IsNull({MasterFile.RevisionsOwner}) and {MasterFile.RevisionsOwner} in {?Owner}) OR (NOT IsNull({MasterFile.PE Stamp Owner}) and {MasterFile.PE Stamp Owner} in {?Owner})))

While it filters the Reps and Owners just fine it totally ignores the date range parameter and gives me all dates and not just the date range selected. Anyone have any thoughts as to why.

Visit Sage's Online Community
 
i would hazard to guess it is all about parenthesis.

try something like this:

(
{MasterFile.Order In} = {?Order In Range}
and
(
{MasterFile.RepName} = {?Rep}
and
(
(NOT IsNull({MasterFile.SelectionsOwner}) and {MasterFile.SelectionsOwner} in{?Owner})
OR
(NOT IsNull({MasterFile.SubmittalsOwner}) and {MasterFile.SubmittalsOwner} in {?Owner})
OR
(NOT IsNull({MasterFile.CalculationsOwner}) and {MasterFile.CalculationsOwner} in {?Owner})
OR
(NOT IsNull({MasterFile.LayoutsOwner}) and {MasterFile.LayoutsOwner} in {?Owner})
OR
(NOT IsNull({MasterFile.CheckingOwner}) and {MasterFile.CheckingOwner} in {?Owner})
OR
(NOT IsNull({MasterFile.RevisionsOwner}) and {MasterFile.RevisionsOwner} in {?Owner})
OR
(NOT IsNull({MasterFile.PE Stamp Owner}) and {MasterFile.PE Stamp Owner} in {?Owner})
)
)
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top