I am using an if statemen in the onload event of a subreport to hide a field if it is a certain value. However, since the subreport doesn't have focus it doesnt hide the field until I click on it. I have tried to set the focus using
Reports!rptCoverSheetInvoice!rptCoverSheetInvoice_ Customer.Form!CustomerName.SetFocus but it gives me runtime error 2467 The expression you entered refers to an object that is closed or doesnt exist.
How can I get this vba code to work when the parent report is opened?
Thanks