Attention: The forums will be placed on read only mode this Saturday (Oct. 20, 2018)

During this outage (6:30 AM to 8 PM PDT) the forums will be placed on read only mode. We apologize for this inconvenience. Click here to read details

Office & Productivity Software forum

General discussion

REPORT QUESTION

by well_missy / March 24, 2004 4:09 AM PST

Created a query to build my report to display all calls that came in. I have built my formula to count calls. Now I want to create a second formula to count all calls under 60 minutes. I have converted the time into a general number.

This is what I have tried:

iif([calls]<=0.0409722, count([calls]), 0)

Please help.

Deborah

Discussion is locked
You are posting a reply to: REPORT QUESTION
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: REPORT QUESTION
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
Re:REPORT QUESTION
by Kees Bakker / March 24, 2004 5:57 AM PST
In reply to: REPORT QUESTION

Deborah,

This is very unclear, and probably very incorrect.

First question:
is this a field in a query, or a field in a report?
Second question:
doesn't this give a syntax error, where-ever you use it. It looks definitely unsyntactical.

I assume calls is a number around .04 (strange name for a number, one should expect something like duration).

For a query, write something as
Select count(*) from mytable where calls < .04 and you'll get one record with one field, which is the answer. This is called SQL (Structured Query Language).

For a detailed report with a totals line:
- add a calculated field with value 1 to the query (if condition is met, otherwise 0)
- subtotal this calculated field in the totals line, giving the number of records in the detail section reported in the total line
This is a typical Access way of making a report.

It's time maybe to pay some consultancy fee to an Access programmer to help you in the right direction by making one or two example queries and reports?


Kees

Collapse -
Re:REPORT QUESTION
by DanielV. / March 27, 2004 5:50 PM PST
In reply to: REPORT QUESTION

Assuming you want a textbox in a group footer of the report:
=Abs(Sum([calls]<=0.0409722))

should give you the right answer.

HTH

Dan

Collapse -
(NT) That's tricky (or, positively formulated, magic): a sum of booleans, sign inversed.
by Kees Bakker / March 27, 2004 6:19 PM PST
In reply to: Re:REPORT QUESTION

.

Collapse -
You got it :-)

Using the trick for quite some time and never failed...

Dan

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

FALL TV PREMIERES

Your favorite shows are back!

Don’t miss your dramas, sitcoms and reality shows. Find out when and where they’re airing!