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!

Formula returns 1

Status
Not open for further replies.

ChipF

Technical User
Nov 15, 2002
50
US
This formula is showing a 1 even if nothing happened that day. I got a report from Sunday where no one was working and it returned all 1s. It does the same for the MonthToDate field.

If {DLY_ACTIVITY.ACTIVITY_DT} = currentdate - 1 Then
{DLY_APPLICATION.LOAN_AM}
Else
0
 
You should verify the the data in the {DLY_APPLICATION.LOAN_AM} field is not only 1's. To do this, drop that field into your detail section.

Also try "0" instead of just 0.
 
I wanted an employee's daily and MTD "QR" occurances in two separate fields. So I created the formulas like the one above. I also have the selection formula looking for "QR".

I have summary totals on those 2 formulas. It adds fine when there was work, but when no one did anything it still gives me a 1. Need anymore info?



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top