|
-
Jan 24th, 2006, 01:10 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Crystal Report - Passing parameter
Hi,
please tell me the syntax of SetReportVariableValue in crystal report. I am getting Run-time error '70' permission denied when I try this. any other way to pass parameter to the report? (I'm using CR 9 with VB 6)
Thanks in advance!
Binish
I was gratified to be able to answer promptly. I said I don't know!
-
Jan 24th, 2006, 01:31 AM
#2
Re: Crystal Report - Passing parameter
to pass parameter to crystal you can use
crystal.formula(0)="<formulaname>"="ganesh"
crystal.formula(1)="<formulaname>"="21"
-
Jan 24th, 2006, 04:00 AM
#3
Thread Starter
Addicted Member
Re: Crystal Report - Passing parameter
I am getting a subscipt out of range error. It is not a formula field, I am using a parameter field for the selection criteria
I was gratified to be able to answer promptly. I said I don't know!
-
Jan 24th, 2006, 05:29 AM
#4
Re: Crystal Report - Passing parameter
i am sorry why dont you create formula field in the crystal report and name it and pass the value for the field using my earlier post.
-
Jan 24th, 2006, 06:29 AM
#5
Re: Crystal Report - Passing parameter
Moved to reporting section
-
Jan 24th, 2006, 08:37 AM
#6
Re: Crystal Report - Passing parameter
This is how is setup my report Paramters:
VB Code:
Set m_Rep = m_App.OpenReport(mRepName, 1)
m_rep.ParameterFields.GetItemByName("Owner").AddCurrentValue (gstrMarker)
m_rep is a form level variable that is set as the report. Owner is the name of the parameter that I am trying to set and gstrMarker is the value I am setting Owner to.
Sometimes the Programmer
Sometimes the DBA
Mazz1
-
Jan 24th, 2006, 11:57 PM
#7
Thread Starter
Addicted Member
Re: Crystal Report - Passing parameter
That works like a charm! Thank You very much. thanks to all of u.
I was gratified to be able to answer promptly. I said I don't know!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|