Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005

    Unanswered: Visual Basic & Crystal Parameter Prompt issue

    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 VB6 and CR 8.5. I am also 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

  2. #2
    Join Date
    Oct 2003
    Make sure that you have only one parameter and the name is par


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts