I have found a ton of posts on this subject but none which clearly answer my question.
This is the code I am using to call on my Crystal Report:
Private Sub mnuView2_Click()
'Run Report.
Screen.MousePointer = vbHourglass
frmRptView.Show
frmRptView.CRViewer1.ReportSource = rptWriteUp
frmRptView.CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub
frmRptView is a form I am using to view all of my Crystal Reports.
I have a parameter in my crystal report {?WU_id}. I have a text box (in the VB form from which I am calling on the CR Report) which has an identifier (txtWU_id) which I would like to use as my parameter for CR Reports.
Does anyone know how to pass this parameter from VB without prompting the user??
This is the code I am using to call on my Crystal Report:
Private Sub mnuView2_Click()
'Run Report.
Screen.MousePointer = vbHourglass
frmRptView.Show
frmRptView.CRViewer1.ReportSource = rptWriteUp
frmRptView.CRViewer1.ViewReport
Screen.MousePointer = vbDefault
End Sub
frmRptView is a form I am using to view all of my Crystal Reports.
I have a parameter in my crystal report {?WU_id}. I have a text box (in the VB form from which I am calling on the CR Report) which has an identifier (txtWU_id) which I would like to use as my parameter for CR Reports.
Does anyone know how to pass this parameter from VB without prompting the user??