R
richard
Hi
I have a database with various tables of which I have a question about the
following two.
tbltable1
tblnapswork
table1 stores the address fields of sites we do work at with a unique site
reference number for each site.
tblnapswork stores the detail of the work to be carried out using the site
reference number to create the link to the site address. There is a jobnumber
field which is increased as each job is created using DMax+1.
Some sites are large and currently one job is created for all the same work
on a site, however there is a need to track work progress and we are looking
at breaking the job down into smaller parts by creating sub jobs.
Currently the job number is just 1294 and we are proposing 1294/001 with the
001 bit incrementing with each sub job upto 999. We are comfortable with 999
as a max due to the size of buildings we are dealing with or are likely to
deal with.
Currently the site address is entered into my database and then into another
database completely seperately, however this second database is being
re-written in SQL and the thought process is that the operator enters the
jobnumber in the rewritten database and this will pull through all the
relevant fields needed, ie address, work type etc from mine, hopefully
eliminating some human error!!!!!!!!!!!!!!
So the question is how to store the job number and sub job numbers
1 I could create a field withing tblnapswork called subjobnumber and store
the two parts of the number seperately (looking something like: field 1 -
1294 field 2 - 001) or
2 I store the jobnumber and the subjobnumber in the same field within
tblnapswork (looking something like 1294/001)
I am looking for any comments on how practical the two options are and also
if there may be any other options we have missed.
I am confident I can achieve option 1 but am unsure how option 2 would work
as I presume it would be a text field and I would want to increment both
parts of the number at different times.
Thanks in advance
Richard
I have a database with various tables of which I have a question about the
following two.
tbltable1
tblnapswork
table1 stores the address fields of sites we do work at with a unique site
reference number for each site.
tblnapswork stores the detail of the work to be carried out using the site
reference number to create the link to the site address. There is a jobnumber
field which is increased as each job is created using DMax+1.
Some sites are large and currently one job is created for all the same work
on a site, however there is a need to track work progress and we are looking
at breaking the job down into smaller parts by creating sub jobs.
Currently the job number is just 1294 and we are proposing 1294/001 with the
001 bit incrementing with each sub job upto 999. We are comfortable with 999
as a max due to the size of buildings we are dealing with or are likely to
deal with.
Currently the site address is entered into my database and then into another
database completely seperately, however this second database is being
re-written in SQL and the thought process is that the operator enters the
jobnumber in the rewritten database and this will pull through all the
relevant fields needed, ie address, work type etc from mine, hopefully
eliminating some human error!!!!!!!!!!!!!!
So the question is how to store the job number and sub job numbers
1 I could create a field withing tblnapswork called subjobnumber and store
the two parts of the number seperately (looking something like: field 1 -
1294 field 2 - 001) or
2 I store the jobnumber and the subjobnumber in the same field within
tblnapswork (looking something like 1294/001)
I am looking for any comments on how practical the two options are and also
if there may be any other options we have missed.
I am confident I can achieve option 1 but am unsure how option 2 would work
as I presume it would be a text field and I would want to increment both
parts of the number at different times.
Thanks in advance
Richard