I'm counting the number of records in a subform. I get an error message "
...expression has no value". But that makes sense because if there are no
records in the subform, the textbox defined by Count(*) is blank, rather
than 0, but I'm having trouble implementing this in the following code. I
was trying to avoid details, but generally, it's
If [subform]![RecordCounterField] >0 then
[subform].visible = True
Else
[subform].visible = False
I have the same kind of strategy in another part of the database, which
works, but the case where counter = 0 isn't an issue there for reasons I
won't go into (if it were I could simply use the same logic).
I look forward to your or anyone's response.
Thanks.
Ken Snell said:
It bombs? Which means what -- it errors? it stops? nothing happens the way
you want? nothing happens at all? Post your code.
--
Ken Snell
<MS ACCESS MVP>
some
code do