G
Guest
Hello. I'm triyng to use two Option controls to define what report should it
print when press the Print button. I'm using the following code:
Dim mapa1 As String
Dim mapa2 As String
If Option23.OptionValue = 1 Then GoTo mapa1
If Option25.OptionValue = 2 Then GoTo mapa2
mapa1:
mapa1 = "rpt_ControloCustos_NotaProducao"
DoCmd.OpenReport mapa1, acPreview
mapa2:
mapa2 = "rpt_ControloCustos_ProdutoAcabado"
DoCmd.OpenReport mapa2, acPreview
This code print both reports.
Can anyone help me?
Marco
print when press the Print button. I'm using the following code:
Dim mapa1 As String
Dim mapa2 As String
If Option23.OptionValue = 1 Then GoTo mapa1
If Option25.OptionValue = 2 Then GoTo mapa2
mapa1:
mapa1 = "rpt_ControloCustos_NotaProducao"
DoCmd.OpenReport mapa1, acPreview
mapa2:
mapa2 = "rpt_ControloCustos_ProdutoAcabado"
DoCmd.OpenReport mapa2, acPreview
This code print both reports.
Can anyone help me?
Marco