473,395 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Print only non-integers

cmd
Hi all,
I have a calculated control on a report which sums the billing units
for each client for each month and for each type of service they
received.

Is there a way to filter the report to show only clients who have total
billing units which are NOT whole numbers?

e.g.,

client-1 total units: 10
client-2 total units: 3.5
client-3 total units: 2.25
client-4 total units: 16

-- I would like the report to show only clients 2 and 3

(perhaps I need to base the report on a Totals query, but I still need
to filter-out any totals which are integers).

Thanks for any help.
Mark

Apr 2 '06 #1
3 1443


--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<cm*@mountain.net> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
Hi all,
I have a calculated control on a report which sums the billing units
for each client for each month and for each type of service they
received.

Is there a way to filter the report to show only clients who have total
billing units which are NOT whole numbers?

e.g.,

client-1 total units: 10
client-2 total units: 3.5
client-3 total units: 2.25
client-4 total units: 16

-- I would like the report to show only clients 2 and 3

(perhaps I need to base the report on a Totals query, but I still need
to filter-out any totals which are integers).

Thanks for any help.
Mark

Apr 2 '06 #2
Yes: Create a Total query.

Presumably you have a field named Unit, and in the Total row under this
field you have Sum.

In a fresh column in the Field row, enter:
IntSumOfUnit: Int(Sum([Unit]))
In the Total row under this field, choose Expression.

Now in the Criteria row under your Unit field, enter:
<> Int(Sum([Unit]))

If you look at the SQL statement, you will see how the HAVING clause
interprets this.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

<cm*@mountain.net> wrote in message
news:11**********************@z34g2000cwc.googlegr oups.com...
Hi all,
I have a calculated control on a report which sums the billing units
for each client for each month and for each type of service they
received.

Is there a way to filter the report to show only clients who have total
billing units which are NOT whole numbers?

e.g.,

client-1 total units: 10
client-2 total units: 3.5
client-3 total units: 2.25
client-4 total units: 16

-- I would like the report to show only clients 2 and 3

(perhaps I need to base the report on a Totals query, but I still need
to filter-out any totals which are integers).

Thanks for any help.
Mark

Apr 2 '06 #3
cmd
Terrific! Thanks, Allen

Apr 2 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Marcin Ciura | last post by:
Here is a pre-PEP about print that I wrote recently. Please let me know what is the community's opinion on it. Cheers, Marcin PEP: XXX Title: Print Without Intervening Space Version:...
3
by: Albert Wagner | last post by:
I have just had a problem that I cannot find any reference to in any docs. Admittedly, I am a JavaScript newbie, but this sure seems like a bug or an "undocumented feature" in Opera 7.11. I have...
2
by: chiara | last post by:
Hi! This is a piece of a code I wrote. It was perfectly working but now it is giving me some problems I can not understand. I scan a directory (ss_data) and I count its alaments. then I print...
5
by: Sunil Thomas | last post by:
Hi, I have developed an ASP.Net application to assist our Field Engineers compile online site survey's for on site assets. The application is functional except for a major setback which is the...
0
by: Paul | last post by:
Occasionally my users will try to perform an action and be presented with an exception raised directly from SQL Server, in example: SET @err = 'a user-friendly error condition message'...
3
by: John Peterson | last post by:
Hello all! I'm at my wits end trying to search for what I assumed to be a relatively straightforward task. I have a Web application written in C#, and I have a button on the form that I want to...
13
by: Daniel Crespo | last post by:
Hi to all, I want to print a PDF right from my python app transparently. With "transparently" I mean that no matter what program handles the print petition, the user shouldn't be noticed about...
3
by: James J. Besemer | last post by:
I would like to champion a proposed enhancement to Python. I describe the basic idea below, in order to gage community interest. Right now, it's only an idea, and I'm sure there's room for...
9
by: Scott M | last post by:
I'm printing a directory of about 500 multi-page tifs to a high speed printer and the spooler process is killing me!!! here is a little code..... Public Function PrintImage(ByVal...
10
by: laurent.pauloin | last post by:
Hello, I would like to print a signed octal. With a signed short it's printf %hi but what about an octal ? Tk !
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.