I'm trying to pass variable from visual basic over to a crystal report parameter and that works fine, unfortunetly as soon as the report loads I am prompted to enter the variable again in the "Enter parameter fields" box. Is there anyway I can disable the parameter field box?
I am using crystl32.ocx component to call the report, bellow is my code:
Private Sub Command2_Click()
Dim test
test = InputBox("GRRR")
CrystalReport1.ReportFileName = "temp.rpt"
With CrystalReport1
.DiscardSavedData = True
.ParameterFields(0) = "par;" & test
.Action = 1
End With
End Sub
I am using crystl32.ocx component to call the report, bellow is my code:
Private Sub Command2_Click()
Dim test
test = InputBox("GRRR")
CrystalReport1.ReportFileName = "temp.rpt"
With CrystalReport1
.DiscardSavedData = True
.ParameterFields(0) = "par;" & test
.Action = 1
End With
End Sub