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

Simple Formula not working

Status
Not open for further replies.

Monkeyboy126

IS-IT--Management
Dec 9, 2002
47
0
0
GB
Hi

Can anyone tell me why the Select formula below isn't working? The database (SQL) is for a helpdesk logging problem and changes and the formula will only display closed calls (so ignores the second part of the formula)

({int_org.iorg_name} = "Company x" and {@Close Date} in MonthToDate)
or
{int_org.iorg_name} = "Company x" and {chg.active_flag}=1.00

Any ideas would be greatly appreciated

Paul
 
try this:

{int_org.iorg_name} = "Company x" and
({@Close Date} in MonthToDate or {chg.active_flag}=1)


Software Sales, Training, Implementation and Support for Exact Macola, eSynergy, and Crystal Reports
 
Tried the formula but same results, still only showing closed calls.

The idea is to show all open calls (active flag=1) and added to this calls closed 9@close date) for the current month.

Maybe there is a simpler way??

Any ideas... [sadeyes]
 
Actually theres 3 parts to this select formula, i need:

1. a specific company (from another table)
2. Calls in an open state (active flag = 1)
3. Calls with an active flag of 0 but must of been closed in current month

Hope this defines it better...
 
Try this:

{int_org.iorg_name} = "Company x" and
({chg.active_flag}=1 or {@Close Date} in MonthToDate)

I know it looks like the formula you have already tested, but this will allow for {@Close Date} = Null.


Reebo
UK

Please Note - Due to current economic forcast and budget constraints, the light at the end of the tunnel has been switched off. Thank you for your cooperation.
 
Did you try my suggestion at the end of your previous post?

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top