[AccessD] FW: Partition Function

Hale, Jim Jim.Hale at FleetPride.com
Tue Nov 14 16:04:43 CST 2006


Well I'll be damned. A new play pretty to amuse myself with that I never
knew existed. thanks!
Jim Hale

-----Original Message-----
From: Heenan, Lambert [mailto:Lambert.Heenan at aig.com]
Sent: Tuesday, November 14, 2006 3:34 PM
To: 'Access Developers discussion and problem solving'
Cc: 'markamatte at hotmail.com'
Subject: Re: [AccessD] FW: Partition Function


There's also the Switch function which allows you to group by ranges, like
this...

Data Range: Switch([SomeDataValue]>8,"a) > 8",[SomeDataValue]>=5,"b) >= 5
and <= 8",[SomeDataValue]>=2,"c) >= 2 and < 5",[SomeDataValue]<2,"d) < 2")

In effect  Switch is like "convoluted IIF statements", but without the
convolutions! :-) Note that the order of the various comparisons in the
statement is significant as Switch stops at the first condition that
evaluates to True.

An advantage over Partition is that you can define the groupings arbitrarily
instead of them being equal groups of size "interval".

Lambert


***********************************************************************
The information transmitted is intended solely for the individual or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of or taking action in reliance upon this information by
persons or entities other than the intended recipient is prohibited.
If you have received this email in error please contact the sender and
delete the material from any computer. As a recipient of this email,
you are responsible for screening its contents and the contents of any
attachments for the presence of viruses. No liability is accepted for
any damages caused by any virus transmitted by this email.


More information about the AccessD mailing list