R
rich
Hi,
I have a table that holds information on a job queue. The next job to
be run is the record at the top of the table. The first column is being
used to hold the Job_ID, when a job is inserted into a table it is
automatically assigned a Job_ID. When the job is ran it is deleted
from the table. At the moment when a new job is added it is put at the
bottom of the table. I would like to give the ability for the operator
to insert a job in any postition of the table.
The only way I can see of doing this is if they chose to 'insert' a job
rather than 'add' a job it copies the job at the bottom of the queue
into a new record and then for every job between the insert point and
the bottom it updates the record with the job above it? The new job
would then update the job that was in the position it wanted? I hope
this make sense!
Are there any easier ways of doing this?
Any help or ideas would be appreciated
Thanks in advance
I have a table that holds information on a job queue. The next job to
be run is the record at the top of the table. The first column is being
used to hold the Job_ID, when a job is inserted into a table it is
automatically assigned a Job_ID. When the job is ran it is deleted
from the table. At the moment when a new job is added it is put at the
bottom of the table. I would like to give the ability for the operator
to insert a job in any postition of the table.
The only way I can see of doing this is if they chose to 'insert' a job
rather than 'add' a job it copies the job at the bottom of the queue
into a new record and then for every job between the insert point and
the bottom it updates the record with the job above it? The new job
would then update the job that was in the position it wanted? I hope
this make sense!
Are there any easier ways of doing this?
Any help or ideas would be appreciated
Thanks in advance