Jump to content

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

Recommended Posts

  • Newbies
Posted

We use a database to track subscribers to an annual service. Using two fields showing the date started and the date ended, I want to be able to calculate the number of days to the expiry date of the service (showing a minus value if the expiry date has passed). I tried the following, but obviously this fails when the start and end dates span end of year (ie start 4/12/02 end 4/12/03)B)

DayofYear(Ad ended) - DayofYear(Today)

Anyone got the solution?

Posted

Days (calculation, number) = Ad ended - Status(CurrentDate)

Subtracting two dates always gives a number result in days. Unlike "Today", Status(CurentDate) doesn't recalculate every time you open the file, only when needed.

-bd

  • Newbies
Posted

Thanks for the rapid response. Unfortunately I am still getting incorrect results even using your formula. The Ad ended field is a date field and the "days to go" field is a number field. Yet I have a record showing an ad end of tomorrow's date but the number 7 showing in the days to go field!

This topic is 8141 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.