Problem: Rounding down dates
Situation: I'm working on a medieval history database. One of the data fields is [year], masked for four digits. I want to calculate and express this year as a century, which is easy to do in Excel with the following:
=ROUNDDOWN(([year]/100),0)+1
This equation guarantees that both "1901" and "1999" would show up as "20" (meaning 20th century) in the [century] field. In order for both of these dates to appear, however, as 20, I need to force the ROUNDDOWN after the division by
100. I could, alternatively, force a ROUNDUP, and then remove the +1 at the end. However, I don't know how to do that, either, in Access.
Thoughts?
Thank you