Results 1 to 4 of 4

Thread: Selection on data on Crystal Report

  1. #1
    Junior Member
    Join Date
    Sep 02
    Posts
    26

    Selection on data on Crystal Report

    I'm new with Crystal Reports in VB. Now I've created a report within Crystal Reports. This works well. The source for the report is the database that also is being used by my VB-application. Now I Call the report from my VB-application and it is being shown, but with all the data from the database of course. How can I do a selection on the data being showed? The user can select a week in the VB-app for example and only the appointments for that week have to be shown in the Crystal Report. How do I do this? Thnx a lot 4 the reply's in advance...

  2. #2
    Hyperactive Member
    Join Date
    Mar 02
    Location
    India
    Posts
    342

    try this..

    use .RecordSelectionFormula property
    ksm

  3. #3
    Junior Member
    Join Date
    Sep 02
    Posts
    26
    With replaceselectionformula, I have to give a string as a parameter. Is this a SQL string, beacause if I do so, nothing happens.

  4. #4
    Hyperactive Member
    Join Date
    Mar 02
    Location
    India
    Posts
    342
    didnt u ever try the record selection formula from crystal reports?? .. from vb interface also u shud use the same format..


    crystalreport1.replaceselectionformula = "{tablename.fieldname}='" & strValue & "'"

    where strValue is the value for the field
    ksm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •