J
Jim Ory
Using WinXP and Access2K2
Thanks to all that have helped me in the past.
I’ve checked the group for using the random number generator but haven’t
figured out how to use it in my situation.
The database holds a list of volunteers for a charity. Each day a report is
sent to a “phone†volunteer who takes calls from people that require a
service. The lists show which volunteers will provide a specific service on
certain days; i.e. meal delivery, visitation, transportation, etc.
Time to jump through hoops:
When the service is requested, the “Phone†volunteer checks the appropriate
list for a particular service and then proceeds to call another volunteer
that will perform the actual service.
The Charity’s request is to make the list random in the order on the report
and the order must change daily, so the first volunteer on the list on Monday
is not the first volunteer on the list on Tuesday, etc., etc. (This could
still happen even with random numbers, but not a major problem.
I have a text control (intSort) bound to a table (tblEntity) that I can
apply the random number to when a form (AddEditEntity) is “current†for that
volunteer. That is only good for one pass through the records, and that
method will not be tolerated or used by data entry persons..
To produce the “duty†list, I have a selection form and use the ‘query by
form’ method for each duty that can be provided, and that will generate the
duty ‘reports’.
What I’d like to do, but may be the wrong approach, is every time the
selection form is opened, it would produce another set of random numbers into
the table and the subsequent report would deal with a new set of sort
numbers. The developed report would be sorted by the new random sort number.
I thought also that using a recordset, I could apply the (Round(Rnd() * 999,
0) + 1) function to the [intSort] field in each record. But, I am not
knowledgeable enough to write that code.
Thanks for your help and/or suggestions..
Thanks to all that have helped me in the past.
I’ve checked the group for using the random number generator but haven’t
figured out how to use it in my situation.
The database holds a list of volunteers for a charity. Each day a report is
sent to a “phone†volunteer who takes calls from people that require a
service. The lists show which volunteers will provide a specific service on
certain days; i.e. meal delivery, visitation, transportation, etc.
Time to jump through hoops:
When the service is requested, the “Phone†volunteer checks the appropriate
list for a particular service and then proceeds to call another volunteer
that will perform the actual service.
The Charity’s request is to make the list random in the order on the report
and the order must change daily, so the first volunteer on the list on Monday
is not the first volunteer on the list on Tuesday, etc., etc. (This could
still happen even with random numbers, but not a major problem.
I have a text control (intSort) bound to a table (tblEntity) that I can
apply the random number to when a form (AddEditEntity) is “current†for that
volunteer. That is only good for one pass through the records, and that
method will not be tolerated or used by data entry persons..
To produce the “duty†list, I have a selection form and use the ‘query by
form’ method for each duty that can be provided, and that will generate the
duty ‘reports’.
What I’d like to do, but may be the wrong approach, is every time the
selection form is opened, it would produce another set of random numbers into
the table and the subsequent report would deal with a new set of sort
numbers. The developed report would be sorted by the new random sort number.
I thought also that using a recordset, I could apply the (Round(Rnd() * 999,
0) + 1) function to the [intSort] field in each record. But, I am not
knowledgeable enough to write that code.
Thanks for your help and/or suggestions..