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

Expression Help

Status
Not open for further replies.

xmeb

Technical User
Jun 5, 2013
89
I am using the following in a text box on a report which works fine but in addition to returning the total of all vehicle jump starts which it now does I also want it to return the daily total for the report date.

Code:
=Sum(IIf([Action]="Vehicle Jump Start",1,0))
 
Maybe I'm missing something here, but if each jump start is assigned a 1 and you sum the 1's, won't that also give you the total number of jump starts? Sure seems like it will. You can do a count of the domain to get an overall count, and if you need the 0's, just subtract the sum of the 1's from the domain total.

Obviously it won't display in one text box though.
 
How are ya xmeb . . .

Have you looked at [blue]DCount[/blue]?

[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see faq219-2884 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top