=?Utf-8?B?TWFyYyBT?= <MarcS@discussions.microsoft.com> wrote in
news:8F0EE786-D03E-4196-A027-1DFA09B7D7B9@microsoft.com:
Hello again Marc
> I have a query that looks at the timesheet data and filters jobs that
> actually had charges against yhem in the past week. From a complete
> active job list of over 200, we may only work on 60 in one week. This
> filtered info is the JobTable
If this stuff is generated in a query, what is the JobTable for? It'll be
different the following week; but if the time sheet records are still there
you can always recreate it at a moment's notice. Once you have any one fact
recorded twice, it's only a matter of time before it disagrees with itself.
> The Invoice Table (which I referred to as AmtTable)
If it's a table full of invoices, why can't you just call it Invoices?
> I want to open another form which popu;lates with
> the JobNum and allow the user enter the invoice amount (which for this
> type of invoice will be a fixed fee). Once the invoice amount is
> entered, I would think an "OK" button would be clicked to generate a
> new record in the AmtTable
As I understand it, this AmtTable will include some columns that are
actually derived from other tables (i.e. time sheets) and some arbitrary
data that the user types in. How does the user know what to type in? If
it's a "fixed amount" for all jobs this week, then it would seem to be a
good thing for that to entered once with an UPDATE query on all this week's
invoice records. If it's a fixed amount that depends on the JobNum, then it
it should be kept in the Jobs table (the proper one, that models all the
2000 current jobs), and in that case you probably don't want it in the
Invoices table at all, unless it's likely to change over the evolution of a
job.
> with a new invoice number
Where does the invoice number come from? Does this have to fit with the
accounting program, or are you free to create your own identifer like
Format(InvoiceDate, "yyyyww") & JobNum or something like that?
> The user would enter the InvoiceAmount, click okay and the next JobNum
> would appear (with the previous information written to the AmtTable).
That sounds like a pretty miserable job for some 60 records; and I would
imagine pretty error prone too. An alternative, if the data really are
arbitrary, would be a form in datasheet mode, so that records are more
visible and easy to correct.
> But I would like to know how the "pros" do
> something like this.
As you will have detected by now, I am very far from a "pro" in finance and
management databases -- it seems to me that this sort of stuff should be
done by commercial software where someone else takes all the risk -- but it
strikes me that anything that involves copying loads of data that already
exist somewhere ese is probably wrong...
All the best
Tim F