Jump to content

advancing by month in calculation?


This topic is 8460 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

Need help in setting up a calculation.

Database changing from having multiple issues advance from weekly to monthly. Previously based this on adding 7 days to "today" but now need only add (1) to each month but not sure best way to go about this. For example, you'd like to run your ad with us 3 times. First run date is 3/1/01, number of issues requested is 3 so you'll be covered in 4/1/01 and 5/1/01 editions. Would like to enter 3 and have datebase calculate this automatically. Anyone with insight... your help would be so appreciated.

Link to comment
Share on other sites

It depends how you want to handle dates like January 31. If you add 30 days to it you get March 3. Is that okay? If so, use your existing calculation, but add 30 instead of 7. If not okay, you will have to decide how to handle these dates.

If your issues are always on the first day of the month, you can advance the dates as follows:

NextDate = Date(Month(LastDate+31),1,Year(LastDate+31))

Link to comment
Share on other sites

This topic is 8460 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.