K
Katherine R
Hi. I'd like to write an If Statement that will insert an employee's name in
an unbound text box depending on the date in another field. For example, if
the date entered in [Date] is greater than or equal to 05/15/2005 I'd like it
to return John Smith, otherwise I'd like it to return Jane Doe. The
following is returning John Smith every time, regardless of the date entered:
= IIf ([Date] >= "05/15/2005", "John Smith", "Jane Doe")
Would I need to add another date field to my table, insert the 05/15/05 date
in it, and refer to the new field in my statement instead of the date itself,
or is their a better way?
an unbound text box depending on the date in another field. For example, if
the date entered in [Date] is greater than or equal to 05/15/2005 I'd like it
to return John Smith, otherwise I'd like it to return Jane Doe. The
following is returning John Smith every time, regardless of the date entered:
= IIf ([Date] >= "05/15/2005", "John Smith", "Jane Doe")
Would I need to add another date field to my table, insert the 05/15/05 date
in it, and refer to the new field in my statement instead of the date itself,
or is their a better way?