Reporting Missing Field Issue
Hello everyone,
I've got a problem, which is probably really issue to solve, but I just can't see the answer.
I have a form with two combo boxes that allows a user to select first a company and then, a product that the selected company supplies. I use the product_id of the selected product as a parameter of the DoCmd.OpenReport method. When the report opens it contains information that is shown in the header and details sections (the report is based on a query and not a recordset).
What I'm trying to do is set the visible property of a label to false if the field it details has no value (makes the report much neater). I'm having no luck trying to code this in within the report itself, as I keep getting a 'can't find this field' error if there is no data within it.
Anyone got any clues? I think I need to code within the form, but not sure how to go about it. I don't really want to go down the setting a global variable route, so I'm resisting like mad! So, any help would be much appreciated.
Thanks,
Karen.
|