如何在给定日期查询查询中的人的年龄。 [英] How can I find the age of a person from a query on a given date.

查看:99
本文介绍了如何在给定日期查询查询中的人的年龄。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在出生日期的给定日期查询某人的年龄。



我想运行一个查询,该查询将返回表中每个人的年龄,在他们出生日期计算的下一年的任何日期。



我希望在明年的01/09(九月)回复他们的年龄。



今天的日期是2015年9月2日



如果出生日期是09/10/2006,答案是9
如果出生日期是28/01/2006,答案是10



任何想法? ?任何

解决方案
检查了这一点:年龄在Microsoft Access,VBA和VB6中计算 [ ^ ]

How can I find the age of a person from a query on a given date from the date of birth.

I want to run a query that will return the age of everyone in a table, on any date of the following year calculated from their date of birth.

I want to return the age in years they will be, say on the 01/09(September) of the next year.

Todays date is 02/09/2015

If the date of birth is 09/10/2006 the answer is 9
If the date of birth is 28/01/2006 the answer is 10

Any ideas?? Anyone?

解决方案

Check this out: Age Calculation in Microsoft Access, VBA, and VB6[^]


这篇关于如何在给定日期查询查询中的人的年龄。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆