I need to make a date enter into an access field. What I need is for the date to be the same date as another date field and add 10 days. I have tried to use dateadd and can not find the right expression.
I need to make a date enter into an access field. What I need is for the date to be the same date as another date field and add 10 days. I have tried to use dateadd and can not find the right expression.

This month, every Windows Secrets subscriber can download a one-chapter excerpt of Windows 7: The Missing Manual.Windows 7: The Missing Manual provides valuable information to help you overcome these difficulties in learning a new operating system. Subscribe today to download your free excerpt.
Try:
= DateAdd("d", 10, [YourFieldname])
From Access Help:
DateAdd(interval, number, date)
Therefore, this adds 10 days to today:
mydate = DateAdd("d", 10, Date)
I'm assuming that it's the same between 2000 and 97....
Great Thank you! I was just in a class and the teacher said this was a great site and fast .
Thank you again
Okay, you can't do that to do your homework. And especially since the answer is available to you right in the help menu.
No homework . It was a two day class and it looks like I need a class on how to use help .
Hmmmmm ...........
I'm "reading between lines" .......
What is being asked is how to store a calculated result in a table. This should not be done ..... it should be calculated "on demand" dynamically when the result is needed. If the stored date entry should change for any reason ...... the stored calculated result will not be correct. By calculating the result dynamically is the only way you can be completely sure that the result is correct at the time of execution.
The basic "rule of thumb" is: Do not store a value in a table that is "dependent" on another field in a table.
There are certain "special occasions" where it considered "allowable" to break this rule. But this is not one of those cases.
Sure .... the DateAdd() function is the correct way to calculate the result. But it result should not be stored in a table.
HTH
RDH
Ricky Hicks
Microsoft MVP
Birmingham, Alabama USA
Hi,
In addition to the DateAdd function, you could also simply use =[datefield]+10 since you're dealing with days.
FWIW.
Regards,
Rory
Microsoft MVP - Excel.