ChrisTheAncient
Technical User
Yes, I know I can't do that (as far as I can see). But I want to do it on a report in A97.
In a grouped report, I count the number of messages (in the detail section) each client has received that day. This value is put in the Group Header. The count is done simply on the message table field called [ID]. Each client usually has a different number of messages.
At the moment, I have a nice looking unbound text box in the Group Header with the following Control Source:
="On " & Format([Date],"dddd"", ""dd mmmm yyyy"
& IIf((Count([MessageID])>1),(" there were " & Count([MessageID]) & " messages "
,(" there was " & Count([MessageID]) & " message "
)
This is fine as long as there has been at least one message!
My problem occurs if there have been no messages - I then get the good ol' #Error.
If I can't nest IIF, is there a way I can (easily) put up a "There were no messages today" legend.
I do have some fairly simple skills in vb - as long as I'm led very gently by the hand!
TIA
Chris
*************************************
OK, I'm stoopid. But I'm good at it!
*************************************
In a grouped report, I count the number of messages (in the detail section) each client has received that day. This value is put in the Group Header. The count is done simply on the message table field called [ID]. Each client usually has a different number of messages.
At the moment, I have a nice looking unbound text box in the Group Header with the following Control Source:
="On " & Format([Date],"dddd"", ""dd mmmm yyyy"
This is fine as long as there has been at least one message!
My problem occurs if there have been no messages - I then get the good ol' #Error.
If I can't nest IIF, is there a way I can (easily) put up a "There were no messages today" legend.
I do have some fairly simple skills in vb - as long as I'm led very gently by the hand!
TIA
Chris
*************************************
OK, I'm stoopid. But I'm good at it!
*************************************