I've put a control in the header of a sub-form which gives a count of the number of records and use this for some calculations on my main form.
However, where there are no records, I cannot get this to return a zero. Initially I assumed the value in the control was null, but I've tried:
IIf(IsNull(count([Surname])),0,Count([Surname]))
which gives a blank which, in turn, gives errors in my calculations.
So, can anyone tell me what the value is, if it isn't zero or null.
Rosie
"Never express yourself more clearly than you think" (Niels Bohr)
However, where there are no records, I cannot get this to return a zero. Initially I assumed the value in the control was null, but I've tried:
IIf(IsNull(count([Surname])),0,Count([Surname]))
which gives a blank which, in turn, gives errors in my calculations.
So, can anyone tell me what the value is, if it isn't zero or null.
Rosie
"Never express yourself more clearly than you think" (Niels Bohr)