Hi experts.. This is urgent....
Pls help..
I'm trying to pass a parameter from VB6 into Crystal Report 8.5
Below is my code.. Currently, My Crystal report is still prompting me with the window whenever I call my report...
Is there a way to disable the crystal report prompt and to take in whatever the user selects in the VB program?
With CrystalReport1
.ReportFileName = App.Path & "\picklistreport.rpt"
.Connect = "C:\POS\Data"
.DiscardSavedData = True
.RetrieveDataFiles
.ReportSource = 0
.SQLQuery = "SELECT * FROM ORDI WHERE Exists (SELECT PO_NO FROM ORDM WHERE PO_ID = '" & tmpPOID & "' AND BCODE = '" & tmpbcode & "') AND PO_ID = '" & tmpPOID & "'"
.Destination = crptToWindow
.PrintFileType = crptCrystal
.WindowState = crptMaximized
.WindowMaxButton = False
.WindowMinButton = False
'.SelectionFormula = "{ORDI.PO_ID} = '" & tmpPOID & "'"
.SelectionFormula = "{ORDM.BCODE} = '" & tmpBranch & "'"
.Action = 1
End With
Pls help..
I'm trying to pass a parameter from VB6 into Crystal Report 8.5
Below is my code.. Currently, My Crystal report is still prompting me with the window whenever I call my report...
Is there a way to disable the crystal report prompt and to take in whatever the user selects in the VB program?
With CrystalReport1
.ReportFileName = App.Path & "\picklistreport.rpt"
.Connect = "C:\POS\Data"
.DiscardSavedData = True
.RetrieveDataFiles
.ReportSource = 0
.SQLQuery = "SELECT * FROM ORDI WHERE Exists (SELECT PO_NO FROM ORDM WHERE PO_ID = '" & tmpPOID & "' AND BCODE = '" & tmpbcode & "') AND PO_ID = '" & tmpPOID & "'"
.Destination = crptToWindow
.PrintFileType = crptCrystal
.WindowState = crptMaximized
.WindowMaxButton = False
.WindowMinButton = False
'.SelectionFormula = "{ORDI.PO_ID} = '" & tmpPOID & "'"
.SelectionFormula = "{ORDM.BCODE} = '" & tmpBranch & "'"
.Action = 1
End With