rdh009: I have 1000 orders, each with a date in, and a date out. they
all take different amounts of time to complete. I want to know how
many orders i have in progress each monday morning...how do i take a
summation?
rdh009: the first order came in May '04
Drthunderjls02: ok, give me a min to think
Drthunderjls02: I would make a query displaying all the jobs in
progress
Drthunderjls02: then do a record count
Drthunderjls02: so any projects with a null date out
Drthunderjls02: where do you need to display this information
rdh009: table, chart, and report
Drthunderjls02: ic, do you see what I mean though?
rdh009: sure, but I'm not sure how to collect data points for each week
for the past 2 years (completed work)
Drthunderjls02: oh so you need to graph jobs in progress for the past 2
years
Drthunderjls02: ic the problem
Drthunderjls02: well you need a variable to query with and then total
those
Drthunderjls02: that is a little more difficult
Drthunderjls02: I'm trying to think how you can do this in SQL
Drthunderjls02: you may need to write a VB function with a loop
rdh009: alright
rdh009: i think i might be in over my head, but im going to try and
think about how id do it by hand and try to post on a google group
forum
Drthunderjls02: ok, I'll give it a think too and get back to you
Drthunderjls02: I'll assume that this database will have to function on
it's own forever right?
Drthunderjls02: with minimal maintance
rdh009: yeah
Drthunderjls02: ok
Drthunderjls02: so will this report be on it's own
Drthunderjls02: just a chart of jobs in progress
rdh009: yes, including a history
Drthunderjls02: ok, I think you'll need to write a function that makes
a table
Drthunderjls02: it will need to find every Monday (or whatever day of
the week)
Drthunderjls02: and then use a while statement to calculate the
JobsInProgress
Drthunderjls02: then increment to the next monday
Drthunderjls02: and with each iteration of the while add a new row to
the table.
Drthunderjls02: then each time the report is generated destroy the
table and recreate it with the data that's there
Drthunderjls02: there is a decent amount of coding to do it though
|