Future Date Calculation Expression

G

Guest

I am able to calculate a future date using the following expression:
=DateSerial(Year([StartDate1]),Month([StartDate1])+6,Day([StartDate1]))

However when using this expression it changes my control source to it and
data does not get saved to the table. Is it possible to use this expression
and have data saved to the table? Like one of the other users I must have
the information saved.
Any assistance will be greatly appriciated.

-Eric
 
G

Guest

If you want to add six month to your date field, you might want to cosider
using the dateadd function
=DateAdd("M"",6,[StartDate1])

e.g
dateadd("m",6,"30/8/2004") will return 28/02/2005
DateSerial(Year("30/8/2004" ),Month("30/8/2004" )+6,Day("30/8/2004" ))
will return 2/03/2005
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top