N
Natahn
Help! I am kind of a novice at Access and need to display an age in a query,
based on the Datediff formula I have in a form (.mbd), but all I get are
zeroes! I saw the post from 6/10 did not have a conclusion.
here is the SQL for the query as I have it now (showing only "0" for age):
SELECT [FBC Community Database].Prefix, [FBC Community Database].FirstName,
[FBC Community Database].LastName, [FBC Community Database].DateJoined, [FBC
Community Database].DateBaptized, [FBC Community Database].Age
FROM [FBC Community Database];
here is the expression I have in my form for the "age" field (based on
birthdate):
=DateDiff("yyyy",[Birthdate],Now())+Int(Format(Now(),"mmdd")<Format([Birthdate],"mmdd"))
based on the Datediff formula I have in a form (.mbd), but all I get are
zeroes! I saw the post from 6/10 did not have a conclusion.
here is the SQL for the query as I have it now (showing only "0" for age):
SELECT [FBC Community Database].Prefix, [FBC Community Database].FirstName,
[FBC Community Database].LastName, [FBC Community Database].DateJoined, [FBC
Community Database].DateBaptized, [FBC Community Database].Age
FROM [FBC Community Database];
here is the expression I have in my form for the "age" field (based on
birthdate):
=DateDiff("yyyy",[Birthdate],Now())+Int(Format(Now(),"mmdd")<Format([Birthdate],"mmdd"))