Ramco Ramco

Ramco Ramco

  • 437
  • 3.4k
  • 541.7k

Pass Parameters to Sub Report

Aug 20 2023 11:46 AM

Hi

I have below code in Main Report. I have 2 parameters in Main Report. How i can pass these 2 parameters to Sub Report

SET @DocEntry = {?DocKey@}
IF @TipoObjeto = '112' -- Draft
BEGIN
   SET @Tabela = 'DRF' -- Draft/Rascunhos - ODRF
END
ELSE
BEGIN
   SET @Tabela = 'INV' -- Pedido de compra - O[TABELA]
END

Thanks


Answers (2)