N
news.west.earthlink.net
HI,
I'm trying to design a simple database, and I'm not sure about how to
achieve this next step.
I'm trying to track some projects and billing at work. Some projects are
billed by the hour, and others are billed flat rate.
I have a table for the project info, that has the following columns:
Project ID- Project Title- Hours Spent- Cost Per Hour-
I've created a query to multiply the "Hours Spent" by the "Cost Per Hour" to
give me the total bill for the project. That's no problem.
Now, I need a more "permanent" place to keep this total, so I don't have to
run the query every time I need a total. I also need to account for the
projects that have a flat rate instead of an hourly bill.
For the flat rate, I am going to add a "Flat Rate" field to the table, and
have the query only calculate a total if the flat rate is empty.
But what do I do to store the total cost? I was thinking of having a
seperate table that stores only the Project ID and Total Bill and then uses
an update query to calculate the Total Bill.
I'm doing this on the assumption that I can't just have a calculated field
in my original table. I also need to make it so changes in how we bill in
the future (say, the cost per hour) don't change the existing totals for
past projects. Once it's entered, it should never change, unless I manually
go in and change it.
Hopefully this makes sense! If there's a better way to do this, please let
me know. There's obviously a lot I don't know about Access.
I'm trying to design a simple database, and I'm not sure about how to
achieve this next step.
I'm trying to track some projects and billing at work. Some projects are
billed by the hour, and others are billed flat rate.
I have a table for the project info, that has the following columns:
Project ID- Project Title- Hours Spent- Cost Per Hour-
I've created a query to multiply the "Hours Spent" by the "Cost Per Hour" to
give me the total bill for the project. That's no problem.
Now, I need a more "permanent" place to keep this total, so I don't have to
run the query every time I need a total. I also need to account for the
projects that have a flat rate instead of an hourly bill.
For the flat rate, I am going to add a "Flat Rate" field to the table, and
have the query only calculate a total if the flat rate is empty.
But what do I do to store the total cost? I was thinking of having a
seperate table that stores only the Project ID and Total Bill and then uses
an update query to calculate the Total Bill.
I'm doing this on the assumption that I can't just have a calculated field
in my original table. I also need to make it so changes in how we bill in
the future (say, the cost per hour) don't change the existing totals for
past projects. Once it's entered, it should never change, unless I manually
go in and change it.
Hopefully this makes sense! If there's a better way to do this, please let
me know. There's obviously a lot I don't know about Access.