A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Printing Database Records in Specific Order



 
 
Thread Tools Display Modes
  #1  
Old April 15th, 2008, 08:48 PM posted to microsoft.public.access.forms
[email protected]
external usenet poster
 
Posts: 1
Default Printing Database Records in Specific Order

I have a delivery service which is composed of various routes. The
route stops have been defined in database tables. Route sheets are
printed based upon these tables. However, I need to have the stops
print in an particular order/sequence; i.e. first stop, second stop,
etc. although these records are not in sequence order in their
table(s). My problem is that I must manually assign a sequence number
to each stop and there may be a hundred or more stops on a route which
changes as stops are added or deleted which would effect the
sequencing. How can I automate assigning a sequence number for
printing to each stop and have it automatically re-number the
sequencing as stops are added or deleted? Will I need to write a
query sort? Any suggestions will be appreciated. Thank you!

  #2  
Old April 16th, 2008, 12:10 AM posted to microsoft.public.access.forms
Steve Schapel
external usenet poster
 
Posts: 1,422
Default Printing Database Records in Specific Order

Imcdavid,

Unless there is data already associated with the stops that determines
their order, you will need to add a field specifically for this purpose.

Managing this sorting field manually is really a very practical way of
handling it. If you use numbers, they don't need to be sequential. You
could start by numbering them 5 - 10 - 15 - 20 etc, which allows the
intermediate numbers to be used in the event of stops being added to the
routes.

Having said that, it would certainly be possible to write code that
would allow you to click on an 'up' or 'down' button to move a stop's
sequencing number higher or lower in the sort order.

--
Steve Schapel, Microsoft Access MVP

wrote:
I have a delivery service which is composed of various routes. The
route stops have been defined in database tables. Route sheets are
printed based upon these tables. However, I need to have the stops
print in an particular order/sequence; i.e. first stop, second stop,
etc. although these records are not in sequence order in their
table(s). My problem is that I must manually assign a sequence number
to each stop and there may be a hundred or more stops on a route which
changes as stops are added or deleted which would effect the
sequencing. How can I automate assigning a sequence number for
printing to each stop and have it automatically re-number the
sequencing as stops are added or deleted? Will I need to write a
query sort? Any suggestions will be appreciated. Thank you!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.