|
-
Apr 30th, 2001, 09:14 AM
#1
Thread Starter
Hyperactive Member
Crystal Reports Parameters
How do I pass parameters to a crystal report?
A cynic knows the price of everything but the value of nothing.
-
Apr 30th, 2001, 02:26 PM
#2
Hyperactive Member
Are you wanting to pass parameters to select records or for something else?
-
Apr 30th, 2001, 10:47 PM
#3
Thread Starter
Hyperactive Member
Yes, I do want to select records.
A cynic knows the price of everything but the value of nothing.
-
May 1st, 2001, 09:49 PM
#4
Addicted Member
With CrystalReport1
.Reportfilename = "C:\myreports\report1.rpt"
.Selectionformula = "{Table1.Myfield} = " & SomeNumber
.Action = 1
end with
This will select records where this field is = to somenumber
To select records using a string parameter, you should enclose the parameter with single quotes:
.Selectionformula = "{Table1.Myfield} = '" & Somestring & "'"
Hope this helps
-
May 2nd, 2001, 12:18 AM
#5
Junior Member
if u r using parameters in cr.
With CrystalReport1
.Reportfilename = "C:\myreports\report1.rpt"
.parameterfield(0) = "paraname;" & SomeNumber &";true"
.Action = 1
end with
Regrads
Amit Pardeshi
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
|