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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Parms not working 1

Status
Not open for further replies.

fcullari

IS-IT--Management
Oct 28, 2002
30
US
I have a report where I need multiple parameters and multiple formula's. My selection criteria is: {TASKS.HOURS} > 0 OR {TASKSACT.HOURS} > 0 and
{TASKS.RESPONS} = {?Tech } and
{TASKS.COMPLETED} >= {?FromDate} AND {TASKS.COMPLETED} <= {?ToDate} OR
({TASKSACT.COMPLETED}) >= ({?FromDate}) and ({TASKSACT.COMPLETED}) <= ({?ToDate})
This is for Track It data, and I need to get taskact(Subtask) hours if none use the Task hours, and then use parameters for From and To dates. The problem is that my parameters are not working. They all work individually but not when I put them together. Any ideas?
 
Breaking down you formula at the ORs, you have the following:

{TASKS.HOURS} > 0

OR

{TASKSACT.HOURS} > 0 and
{TASKS.RESPONS} = {?Tech } and
{TASKS.COMPLETED}>={?FromDate} and
{TASKS.COMPLETED}<={?ToDate}

OR

({TASKSACT.COMPLETED})>=({?FromDate}) and ({TASKSACT.COMPLETED})<= ({?ToDate})

In the last part of your logic, you have told it that you want every single record where {tasksact.completed} is between the 2 dates, thus negating the {?Tech} parameter right above it.

Also, your first set of logic would include all records with a {tasks.hours}>0, regardless of the dates or {?Tech}.

What records do you want on your report?
Software Sales, Training and Support for Macola, Crystal Reports and Goldmine
dgilsdorf@mchsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top