1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Calculate age using Omniform 5.0

Discussion in 'Business Applications' started by bot24, Sep 24, 2008.

Thread Status:
Not open for further replies.
  1. bot24

    bot24 Thread Starter

    Sep 24, 2008

    I am working on developing a new reporting form. I have developed the form using Omniform 5.0 and I would like the form to calculate a persons current age automatically.

    I beleive I am using the right formula: Sum([Date]-[Date of Birth])/365.25

    Here lies my problem:
    So, today's date 9/24/2008 - 2/23/1977 = 31.58
    If I change the settings to only use two decimals omniform returns the age as 32. Is there any way to make it use two decimals yet not round the answer? Will it round down?

    If I keep the settings at two decimals I am able to delete the .58 and have it say 31.00; however, this isn't quite the look I was hoping for in the end product.

    Any help would be much appreciated.
  2. fiachra


    Sep 25, 2008
    here is something someone tried to find out how old someone is based on two dates
    Age Formula:
    Create the following fields:
    age year
    age month
    age month year
    age day
    cut and paste the following formulas

    dob - (must be date field)
    dod - (Must be date field)
    age year - (Year([dod]))-(Year([dob]))
    age month - If(Month([dod]) < Month([dob]),[age year]-1,[age year])
    age month year - If(Month([dob])=Month([dod]),"month equal","")
    age day - If([age month year]="month equal" And DayOfMonth([dod]) < DayOfMonth([dob]),[age month]-1,[age month]-0)
    Let me know how it goes
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/752896

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice