Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Paramets to Crystal from MS Access

Status
Not open for further replies.

yarub

IS-IT--Management
Jul 24, 2002
3
US
Hi,
I am able to pass single parameter from MS Access to Crystal reports, does any one know, how to add other parameter, I have tried to add Pacct as in the following code, but don't know the exact syntax. thanks for you help.

Private Sub CmdStatusRpt_click()

Dim pdate As String
Dim pacct As String


pdate = Forms![crystal report]![LstDate]
pacct = Forms![crystal report]![lstAcct]

StatusReport.ReportFileName = "C:\performance\composite failed.rpt"
StatusReport.ParameterFields(0) = ("pdate;composite failed;true")


StatusReport.Action = 1


End Sub

Tanvir
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top