V
V. Roe
I am using Access 2000.
In a text box on a report (detail section), I am trying to write an
expression that will return the singular or plural depending upon the
results of a calculation. I believe the problem revolves around the fact
that I am using a text box and "1" is text not a number, but I don't know
how to work around this (I am very new to Access). I need to say if (<= 1,
"hour", "hours"). The below expression works, except results that are <1
returns the word "hours". It's not really a big deal, but I hate not doing
it the right way. Any help would be appreciated. Thanks.
Valerie
=(Sum([Length of Service]/60) & (IIf([Length of Service]/60=1," Hour","
Hours")))
In a text box on a report (detail section), I am trying to write an
expression that will return the singular or plural depending upon the
results of a calculation. I believe the problem revolves around the fact
that I am using a text box and "1" is text not a number, but I don't know
how to work around this (I am very new to Access). I need to say if (<= 1,
"hour", "hours"). The below expression works, except results that are <1
returns the word "hours". It's not really a big deal, but I hate not doing
it the right way. Any help would be appreciated. Thanks.
Valerie
=(Sum([Length of Service]/60) & (IIf([Length of Service]/60=1," Hour","
Hours")))