If that is the case, a little redesign could help you
immensely down the road. This may be very simplistic as
there is usually more involved in this type of thing.
A better approach would be to have a table that holds the
project and the spefic info relevant to the project as a
whole. Each project has a unique ID. Then you would have a
table holding you job categories, roofing, doors, drywall,
etc. so that you could use this to populate a list to choose
from. Each category would have a unique ID. Next you would
have a job line item table that would hold the ProjectID,
the WorkCategoryID.
Now you would probably create an entry system where you go
to a Project form that would have a subform that would allow
you to add your cost line items that the project requires as
you need. If there is only one, you only put one record in
the subform. If there are 1,000 then you would put 1,000
records in the subform. No matter how many you have you can
now use Sum() to total them at will.
tblProjects
ProjectID - Autonumber - Primary Key
ProjectName - Text
ProjectOwner - Text
etc...
tblJobCategories
JobCategoryID - Autonumber - Primary Key
JobCategory - Text
tblProjectJobs
ProjectJobID - Autonumber - Primary Key
ProjectFK - LongInteger - ForeignKey to Project table
JobCategoryID - LongInteger - ForeignKey to JobCategory
table
Amount - The charge for this job section
I would also wonder if you would want to subdivide another
level to divide labor from materials. As I said this is a
very simple model.
--
Gary Miller
Gary Miller Computer Services
Sisters, OR
________________________