J
Joanne
Hello,
I have a form for calculating vacation time. There are 4 text boxes going
horizontally across the form, OLP Begin Date, OLP End Date, Type of Day and
then finally a calculated field (a text box), with the following formula.
=DateDiff("d",[OLP Begin Date],[OLP End Date]). So far this is working well.
But now I would like to add some criteria that the dates should only be
included in the totals field if the "Type of Day" is not "personal" or "Jury
Duty". I added and And clause at the end of the DateDiff function but
clearly that is not the way to go. Is there any way that I can use DateDiff
and use that selection criteria? Does this make sense? Any help would be
greatly appreciated.
I have a form for calculating vacation time. There are 4 text boxes going
horizontally across the form, OLP Begin Date, OLP End Date, Type of Day and
then finally a calculated field (a text box), with the following formula.
=DateDiff("d",[OLP Begin Date],[OLP End Date]). So far this is working well.
But now I would like to add some criteria that the dates should only be
included in the totals field if the "Type of Day" is not "personal" or "Jury
Duty". I added and And clause at the end of the DateDiff function but
clearly that is not the way to go. Is there any way that I can use DateDiff
and use that selection criteria? Does this make sense? Any help would be
greatly appreciated.