C
ChrisKONE
I am not exactly new to Access, but I can't say I do the most
complicated things with it. I use the query design window, rather than
SQL, about 99.9% of the time.
I'm stuck on a problem, and I saw a similar question from a while back,
but it didn't go quite far enough.
Here was the original post:
*****************
I have a table of steps, tracking the progress of a process. Some of
the
steps are time-sensitive to the completion date of earlier steps. For
example, if Step1 was completed on June 15, then Step2 is due on June
20 and
Step3 is due on June 25.
So, in its simplest form, I'm thinking my table would look like:
tblSteps
*fldStepNumber
fldStepDescription
fldCompletionDate
fldDueDate
Record one would be Step1, and so on.
How can I make fldDueDate of Step2 = [fldCompletionDate +5] of Step1,
and
fldDueDate of Step3 = [fldCompletionDate +10] of Step1?
Also, I've read that one doesn't store calculated values in tables, so
then
would this be done in a query or in a form?
Thanks in advance.
Anxiously wondering how,
Response:
Hello Mathew.
You can create a query to update the fldDueDate field. First, qreate
the
query qryNextDueDates:
SELECT [fldStepID]+1 AS NextStepID, [fldCompletionDate]+5 AS
NextDueDate
FROM tblSteps;
Then create the update query:
UPDATE tblSteps INNER JOIN qryNextDueDatesON tblSteps.fldStepID =
qryNextDueDates.NextStepID SET tblSteps.fldDueDate =
[qryNextDueDates].[NextDueDate];
I hode, this helped.
Regards,
Wolfgang
***********
My problem is this...
the original post was trying to make a table with a set number of steps
(evidently a single process).
I am trying to set up a contract tracking database where one table
holds a unique project number, with a dependent table holds a list of
standard action items repeated for each project number. (each of these
records does have an autonumber assigned to it for key purposes) there
is a third table where I have the standard actions listed with number
of days before due date.
So the first table would have recordset like this:
FLNumber Bid Date
600000 01/11/06
600001 05/11/06
and the second table would look something like this:
FL Number Action Due Date(initially blank)
Actual Date
600000 Step 1 01/01/06 (uses Bid date from first field
as starting point)
600000 Step 2 (previous steps' due date, plus the
number of days from the actions table - until the Actual Date is filled
in, then it would read from that date )
600001 Step 1 05/01/06
600001 Step 2 Same as first FL number above
the third table looks something like this:
Step DaystoDue
Step 1 10 (before bid date)
Step 2 5 (after first due date, or actual date if it is
filled in)
The durations between the steps would be the same (at least during
setup), but the first due date would be different for each FL number.
I also need to have the ability to manually change the due date that
doesn't get wiped out if it happens to be more or less than the
"standard" duration. so I assume I need an update query on the second
table that would only update empty due dates and/or when the actual
date is updated change subsequent due dates.
Although I don't typically use SQL, I assume I could copy/paste into
the SQL mode and it would show me the "visual" view I'm used to.
Any help would be appreciated...
complicated things with it. I use the query design window, rather than
SQL, about 99.9% of the time.
I'm stuck on a problem, and I saw a similar question from a while back,
but it didn't go quite far enough.
Here was the original post:
*****************
I have a table of steps, tracking the progress of a process. Some of
the
steps are time-sensitive to the completion date of earlier steps. For
example, if Step1 was completed on June 15, then Step2 is due on June
20 and
Step3 is due on June 25.
So, in its simplest form, I'm thinking my table would look like:
tblSteps
*fldStepNumber
fldStepDescription
fldCompletionDate
fldDueDate
Record one would be Step1, and so on.
How can I make fldDueDate of Step2 = [fldCompletionDate +5] of Step1,
and
fldDueDate of Step3 = [fldCompletionDate +10] of Step1?
Also, I've read that one doesn't store calculated values in tables, so
then
would this be done in a query or in a form?
Thanks in advance.
Anxiously wondering how,
Response:
Hello Mathew.
You can create a query to update the fldDueDate field. First, qreate
the
query qryNextDueDates:
SELECT [fldStepID]+1 AS NextStepID, [fldCompletionDate]+5 AS
NextDueDate
FROM tblSteps;
Then create the update query:
UPDATE tblSteps INNER JOIN qryNextDueDatesON tblSteps.fldStepID =
qryNextDueDates.NextStepID SET tblSteps.fldDueDate =
[qryNextDueDates].[NextDueDate];
I hode, this helped.
Regards,
Wolfgang
***********
My problem is this...
the original post was trying to make a table with a set number of steps
(evidently a single process).
I am trying to set up a contract tracking database where one table
holds a unique project number, with a dependent table holds a list of
standard action items repeated for each project number. (each of these
records does have an autonumber assigned to it for key purposes) there
is a third table where I have the standard actions listed with number
of days before due date.
So the first table would have recordset like this:
FLNumber Bid Date
600000 01/11/06
600001 05/11/06
and the second table would look something like this:
FL Number Action Due Date(initially blank)
Actual Date
600000 Step 1 01/01/06 (uses Bid date from first field
as starting point)
600000 Step 2 (previous steps' due date, plus the
number of days from the actions table - until the Actual Date is filled
in, then it would read from that date )
600001 Step 1 05/01/06
600001 Step 2 Same as first FL number above
the third table looks something like this:
Step DaystoDue
Step 1 10 (before bid date)
Step 2 5 (after first due date, or actual date if it is
filled in)
The durations between the steps would be the same (at least during
setup), but the first due date would be different for each FL number.
I also need to have the ability to manually change the due date that
doesn't get wiped out if it happens to be more or less than the
"standard" duration. so I assume I need an update query on the second
table that would only update empty due dates and/or when the actual
date is updated change subsequent due dates.
Although I don't typically use SQL, I assume I could copy/paste into
the SQL mode and it would show me the "visual" view I'm used to.
Any help would be appreciated...