Re: Need to build array of ranges - Partition Function not enough
From: CJ (cgreen07_at_hotmail.com)
Date: 04/08/04
- Next message: Rhonda Fischer: "=> Query to copy tbl1 split entries into tbl2"
- Previous message: John: "Query range starting with 1"
- In reply to: Allen Browne: "Re: Need to build array of ranges - Partition Function not enough"
- Next in thread: Allen Browne: "Re: Need to build array of ranges - Partition Function not enough"
- Reply: Allen Browne: "Re: Need to build array of ranges - Partition Function not enough"
- Messages sorted by: [ date ] [ thread ]
Date: 8 Apr 2004 08:32:08 -0700
Allen, thanks for your reply to my question. That is a good solution
but I will be working with changing data and foresee having to rebuild
such a table with each update to the recordset. The min and max
values will not be static.
- Christine
"Allen Browne" <AllenBrowne@SeeSig.Invalid> wrote in message news:<4074b0b7$0$16576$5a62ac22@freenews.iinet.net.au>...
> Place the ranges in a table.
> Use DLookup() to get the primary key for the range, e.g.:
> DLookup("RangeID", "tblRange", "RangeMin > " & [MyField])
>
> Once you have the RangeID, you can get the defined range from that.
>
> --
> 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.
>
> "CJ" <cgreen07@hotmail.com> wrote in message
> news:652cf3de.0404071320.638edefc@posting.google.com...
> > I want to be able to generate a set of ranges to group data with in a
> > query at run-time. I want the start value to be the mimimum and the
> > last end value to come from min and max values from a field in the
> > dataset that I am grouping on. I want the end value for each range to
> > be a user-defined interval and the start value to be the next smallest
> > increment above the preceding range's end interval. The partition
> > function doesn't get me all the way there.
> >
> > Range Example:
> > 4.625 to 5
> > 5.001 to 5.5
> > 5.501 to 6
> > 6.001 to 6.5
> > 6.501 to 7
> > 7.001 to 7.128
> >
> > Any help on how I can right a routine to generate these ranges would
> > be appreciated!
> >
> > Thanks,
> > Christine
- Next message: Rhonda Fischer: "=> Query to copy tbl1 split entries into tbl2"
- Previous message: John: "Query range starting with 1"
- In reply to: Allen Browne: "Re: Need to build array of ranges - Partition Function not enough"
- Next in thread: Allen Browne: "Re: Need to build array of ranges - Partition Function not enough"
- Reply: Allen Browne: "Re: Need to build array of ranges - Partition Function not enough"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|