In a query, something like below. Make sure that the closed date field name
is spelt correctly between the [ ] .
Destruction Date: DateAdd("yyyy", 10, [closed date])
However you shouldn't have a destruction date field in your table as you can
derive the data using something like above. In other words you should
calculate the destruction date as needed instead of storing it in a table.
Why? What happens if you change the closed date and forget to update the
destruction date? You will have inconsistant data. What happens if the
destruction date rule gets changed to 15 years? You'll need to fix all the
records already entered.
Here's another reason, but not exactly applicable to your situation. You
have a Date Of Birth field and an Age field in an Employee table. After a
full year the Age field will be wrong. It's better to just drop the Age field
and calculate the age from the Date Of Birth field as needed.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
WG said:
I have a closed date field and a destruction date field both of which use
medium date format. I need the destruction date to be the closed date plus
ten years. Iam not sure what formula to use to do this.