D
Debbie
From DateCalc (Macropod's), I used the #Days between 2 days formula as he
suggested. It works great. Now a new question:
When the form opens, I use CreateDate as a field and use that as my EndDate.
Then, as StartDate, I enter a Date of Birth. When I calculate the days
using your formula, it works perfectly. BUT, I am allowing up to 4 Dates of
Birth to be entered (with 4 calculations). If there is only 1 entered, the
calculation on the days shows 2009 yrs., 6 months, 20 days (which is today's
date minus 0).
How can I default the calculation tobe blank if no Date of Birth is entered
(which means the field is skipped or tabbed over, not entering spaces in the
field)? I have tried testing for sy=0, sy="", and sy=null, (in addition to
sm and sd using an if statement) but nothing seems to work. Do I need to
preset the variables on the opening of the form, an how? Is there an if
statement to check them all at once?
Thank so much for your help!
suggested. It works great. Now a new question:
When the form opens, I use CreateDate as a field and use that as my EndDate.
Then, as StartDate, I enter a Date of Birth. When I calculate the days
using your formula, it works perfectly. BUT, I am allowing up to 4 Dates of
Birth to be entered (with 4 calculations). If there is only 1 entered, the
calculation on the days shows 2009 yrs., 6 months, 20 days (which is today's
date minus 0).
How can I default the calculation tobe blank if no Date of Birth is entered
(which means the field is skipped or tabbed over, not entering spaces in the
field)? I have tried testing for sy=0, sy="", and sy=null, (in addition to
sm and sd using an if statement) but nothing seems to work. Do I need to
preset the variables on the opening of the form, an how? Is there an if
statement to check them all at once?
Thank so much for your help!