Results 1 to 5 of 5

Thread: Crystal Reports Parameters

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2000
    Location
    Tennessee
    Posts
    279

    Crystal Reports Parameters

    How do I pass parameters to a crystal report?
    A cynic knows the price of everything but the value of nothing.

  2. #2
    Hyperactive Member Ed Lampman's Avatar
    Join Date
    Mar 2001
    Posts
    273
    Are you wanting to pass parameters to select records or for something else?

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2000
    Location
    Tennessee
    Posts
    279
    Yes, I do want to select records.
    A cynic knows the price of everything but the value of nothing.

  4. #4
    Addicted Member
    Join Date
    Oct 1999
    Location
    The Lone Star State
    Posts
    183
    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
    !

  5. #5
    Junior Member
    Join Date
    Mar 2001
    Posts
    31
    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
  •  



Click Here to Expand Forum to Full Width