Results 1 to 3 of 3

Thread: crystal reports

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    10

    Post

    I'm having a problem in generating my report when I use the selectionformula the first time it is ok but when I select another criteria it will not display because the conditions I made with my first report will not be replace with the present criteria I inputed instead it will combine with the new condition. Can any body help me on how to replace the first condition with a new one

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Location
    Springfield, IL
    Posts
    124

    Post

    There is a property in crystal reports to discard or clear the data in the report. I am not exactly sure what the name of the property is and I don't have anyway to look it up right now. You might want to look under Discard or Clear and see what you find.

  3. #3
    New Member
    Join Date
    Nov 1999
    Posts
    12

    Post

    you don't need to erase it.
    when you place the recordselectionformula on the report leave the selection expert blank.
    in code, for example;

    Report.RecordSelectionFormula = "{dao.OrderID} = " & Chr$(34) & Combo1.Text & Chr$(34)

    ' Refresh the smartviewer if its being used.
    CRViewer1.Refresh

    this will take OrderID out of a combobox and make a recordselection based on it.

    it will always only be equal to that line.

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