G
GenE Shockley
Microsoft Access 97. No experience in writing code, but program in queries
regularly.
Have query that includes two dates. Need to subtract date 1 from date 2 and
get response in ##years ## months ## days.
Example
10/03/1984-07/06/1954 = 30 years 2 months 27 days
Have tried writing expression:
Expr1: [david dob]-[mom dob] and result shows as 11047
also: Expr1: [david dob (y,m,d)]-[mom dob(y,m,d)] When running the query
it now asks me to enter david dob and then mom dob and returns a result of 30
However david dob and mom dob are fields that already includes the date and
I am trying to avoid entering the date again in a pop up box as well as
trying to get the true result of 30 years 2 months 27 days.
By the way, I tried reading through the help screens in the database as
well as searching through past messages here.
Thanks, for any help.
regularly.
Have query that includes two dates. Need to subtract date 1 from date 2 and
get response in ##years ## months ## days.
Example
10/03/1984-07/06/1954 = 30 years 2 months 27 days
Have tried writing expression:
Expr1: [david dob]-[mom dob] and result shows as 11047
also: Expr1: [david dob (y,m,d)]-[mom dob(y,m,d)] When running the query
it now asks me to enter david dob and then mom dob and returns a result of 30
However david dob and mom dob are fields that already includes the date and
I am trying to avoid entering the date again in a pop up box as well as
trying to get the true result of 30 years 2 months 27 days.
By the way, I tried reading through the help screens in the database as
well as searching through past messages here.
Thanks, for any help.