see comments in-line below...
wolfiewoman said:
Once a date is put in InitialDate, it will never change.
I'm glad to hear that you/your users NEVER make a data entry error that
needs subsequent correction. Most folks try to take into account the
possibility of needing to correct errors (e.g., keying error, data entered
against incorrect record, etc.).
That is part of a
different table in the form.
?Your form is based on more than one table? How does that work?
My review dates are in a subform.
The usual design of main form/subform handles one-to-many relationships.
From your comment and use of a subform, I'm assuming that you can have
multiple "review dates" for a given (main form) record.
By the way, how does Access know which 'table' the main form record relates
to (see previous statement/comment)?
I always
want the two yrs added to the InitialDate in the ReviewDue so I know two
yrs
from now to do a review.
Once again, it is possible to know when to do the review because an Access
query can tell you when YourDate plus 2 years is getting close. This
doesn't require storing the ReviewDate.
Once I have completed a review, I will go to the
review form and add that in the RevDateComp of that same record.
We're not there ... we can't see your tables, so "of the same record" isn't
quite clear. If you are saying that you record the date that you conduct
the review, does it HAVE to be on the ReviewDate? (I'm guessing not, so I'm
guessing you'll want a way to say "this was reviewed TODAY")
Once that
is completed in that record, I want a new record to have a date 2 yrs from
the RevDateComp in the ReviewDue field. How do I do that?
More complications ... that ReviewDue date was originally based on your
original record. Now you're saying you want to base the "next" one on the
actual date reviewed. Once again, if you use a query to derive the
most-recent date reviewed (or the original start date, if there are no
reviews), you can simply use the query to calculate 2 years from then. No
need to store it.
Why not just store the original date, and the reviewed-on-dates?
Regards
Jeff Boyce
Microsoft Office/Access MVP
Jeff Boyce said:
By storing the value of [InitialDate] + 730, you guarantee that you'll
have
to do something to maintain that stored value. For example, what happens
if
the initial date was entered incorrectly? Which value (the new initial
date
or the existing [ReviewDue] is correct?!
Instead, if you will ALWAYS be adding 730 to [InitialDate], just use a
query. You are always guaranteed of having current data.
Note: DateAdd() function can handle your "plus two years" calculation.
Regards
Jeff Boyce
Microsoft Office/Access MVP
wolfiewoman said:
I have a field called ReviewDue which gets populated from InitialDate +
730
on the first record. I want to be able to put in when the review was
completed (RevDateComp) and start a new record with ReviewDue having
the
date
from RevDateComp + 730. I need to have a review done every two years.
I
want to have it ReviewDue autopopulate after a RevDateComp field is
completed
on the previous record. Could anyone assist?