CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1999
    Location
    india
    Posts
    9

    crystal report query

    Hello everybody!
    I am using crystal report 4.6 vith v.b 5.0,
    i created a standard report template using crystal reports,
    now i want to use that template form a vb form so i placed a crystal reports ocx control on the form and run the report using Crystalreport1.action=1 command so it runs properly.But i want to modify the sql query of the crystal report form so i set the crystalreport1.sqlquery propertty to new query
    but the report does not reflect the changes.
    Please help me generate a dynamic report ,
    how do i change the report at run-time?

    Please Help



  2. #2
    Guest

    Re: crystal report query

    Hi,
    In my opinion what I get from your statement of Dynamic is that you want to add some extra criteria to the already existing criteria with which the crystallreport is created. For this make use of :
    CrystallReport.SelectionFormula="You extra criteria"
    (The above criteria will be appended to the already existing criteria)
    And if your reprt is based on the Groups too then even that you can filter by:
    CrystallReport.GroupSelectionFormula="You extra criteria"

    Hope This Helps.


  3. #3
    Guest

    Re: crystal report query

    Thanks For Your prompt response I could do with it .
    But i want to pass a complete sql query or recordset to the report when i try to
    pass sql using sqlquery property it gives me a sql server error with error code 20527.
    If anybody can help me it wiil be great.

    Thanks once again



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

Featured