×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
• Talk With Other Members
• Be Notified Of Responses
• Keyword Search
Favorite Forums
• Automated Signatures
• Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

#### Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

# Calculate age in Approach

## Calculate age in Approach

(OP)
I am sure this is quite simple but the formula eludes me. I have a DATE OF BIRTH field on my form and would like to have the members age calculated and displayed in another field. I know that in 123 and Excel date is a sequential number from a certain date so the math is easy. I have tried the formula TODAY-Date of BIRTH but it does not give the result I am looking for. Can anyone help with this.

Thanks wingnutnb

### RE: Calculate age in Approach

Create a calculated field and use this formula.
Today()- birthday
I hope it works for you.

### RE: Calculate age in Approach

This is correct most of the time:

age = Trunc((Today() - DOB)/365.25)

When you subtract one date from another, the result is the number of days between the two. You can then divide by the number of days in an average year (leap years are 1 day longer).

Sue Sloan

### RE: Calculate age in Approach

I have created a Patient Data base (non clinical) for my daughter who is a dentist. This works well for letters, recalls due, failed appointment, outstanding accounts etc.
I now wish to create a form which will be an estimate of the cost of treatment.  The text is no problem but I wish the keyed entries to be the number of units of each item of treatment (e.g. radiographs). The total cost of radiographs would then be a calculated field multiplying 'No of units' times 'Unit Cost'.  In the form (or separate price list) how do I create a field for the Unit cost of a radiograph which will be used in all calculations without entering the cost in every field in every record. I know you can enter specified data in a field for every new record but there are 1500 records present at the moment.  Hope I am making sense.

Eric Battison

#### Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

#### Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Close Box

# Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

• Talk To Other Members
• Notification Of Responses To Questions
• Favorite Forums One Click Access
• Keyword Search Of All Posts, And More...

Register now while it's still free!