I’m trying to display certain fields on a report based on which company I am in. I need to use the VISIBLE function to change the property based on the company name I get from the COMPANYNAME function, correct? I can’t seem to get the syntax correct to change the visible property … any help here?
You can’t use the visible property on controls in a report. Instead You must use different sections and use “CurrReport.SHOWOUTPUT(MyCondition)” Rgds //Lars
Or use a variable and a textbox instead of changing property on the caption box. if companyname = (the company you specify) then x := (whatever you want to display) else x := ‘’; I think there are previous posts regarding this already. Try searching the forums.