sorting or grouping

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a Report that list a number of Address's...I would like to sort or
group them by even #'s & Odd #'s.... Would love to just do it in the report
??? Is there any way to format the report so it will print / show all Even #
address's, Followed by all Odd adress's ???

Thanks for any Help....

Aaron
 
=Val("0" & [Address]) Mod 2

Adding the zero character to the start of the address, will handle addresses
that don't start with a numeric character
 
Would this go on the Report ???
I tried to put this into "Filter" on the report, Turn Filter to "On", but
did not seem to seperate the Odd / Even....
Would I need to put this into a Query ???
Thanks for your help..

Aaron

John Spencer said:
=Val("0" & [Address]) Mod 2

Adding the zero character to the start of the address, will handle addresses
that don't start with a numeric character


Graveyardblues said:
I have a Report that list a number of Address's...I would like to sort or
group them by even #'s & Odd #'s.... Would love to just do it in the
report
??? Is there any way to format the report so it will print / show all
Even #
address's, Followed by all Odd adress's ???

Thanks for any Help....

Aaron
 
Graveyardblues said:
I have a Report that list a number of Address's...I would like to sort or
group them by even #'s & Odd #'s.... Would love to just do it in the report
??? Is there any way to format the report so it will print / show all Even #
address's, Followed by all Odd adress's ???


In general, addresses are not well enough defined to figure
out what's even or odd. If your set of addresses is
**always** nnn street, then you set the report's Sorting and
Grouping (View menu) to the expression:
=Val(address) Mod 2
 
That works !!!! Can I now get the report to break at the end of the Odd's &
start a new page at the beginning of the Even's ??? Could I runa Query that
would accomplish the same by seperating Odd & Even in the Query ???

Any Help is greatly appreciated !!!!

Aaron
 
Add a group header section for the group (make it very small
if you have no other use for it). Then set the header
section's ForceNewPage property to Before Section.
 
You could put this in the query and then sort on it in the report.

IMPORTANT:
The sort order in a report is controlled by the SORTING AND GROUPING
(Menubar: View : Sorting and Grouping) that is set in the report. If you
don't set the sort order by this dialog, then Access may or may not return
the records in the order you've specified in the query. Access reports
IGNORE the order clause in the query.

Graveyardblues said:
Would this go on the Report ???
I tried to put this into "Filter" on the report, Turn Filter to "On", but
did not seem to seperate the Odd / Even....
Would I need to put this into a Query ???
Thanks for your help..

Aaron

John Spencer said:
=Val("0" & [Address]) Mod 2

Adding the zero character to the start of the address, will handle
addresses
that don't start with a numeric character


message
I have a Report that list a number of Address's...I would like to sort
or
group them by even #'s & Odd #'s.... Would love to just do it in the
report
??? Is there any way to format the report so it will print / show all
Even #
address's, Followed by all Odd adress's ???

Thanks for any Help....

Aaron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top