Changing company

Hello, I am making report in company X, but the same information I have to get from another report Y. Is there in Navision a function changecomp or something like that ? Thx.

You can create a new dataitem for Company record, and use function changecompany( to other dataitems. Best regards from bcn.

Be careful when using Record.CHANGECOMPANY, though. If a trigger is called on the record, any record variables used in the trigger will still refer to the old company!