I have seen several posts on here on this topic, but none have provided me with a concise implementable answer, and I'm in a bit of a hurry. I have a report that must have one of three titles, depending upon the information returned in the report query. If no instances of a value are returned, then one title is needed, if all of the instances returned match that value then I need another, and if there are some and some then I need yet another. I've attempted to tackle this using DCount, assigning the DCount result to a variable in the On Open event of the report, and then an if statement: if the variable containing the result of the DCount equals zero then label1.visible = true; but this generates an error, saying that I cancelled the previous expression. Can anybody tell me an easy way of achieving my desired functionality? I'd be very grateful!
Thank you,
Matt
Thank you,
Matt