locked
Edit the Sql query in Crystal Report RRS feed

  • Question

  • Hi,
         I am using VS 2008 crystal report .I just want to edit the query generated by crystal report.Is there any possibilities for that.

    Thursday, February 18, 2010 11:39 AM

Answers

  •  CR will generate a SQL statement for you based on your table links, groupings etc. If you're not familiar with it, using a "command query" gives you that control. You build the query used in the CR report, instead of using table links, etc.

    Read up on the command query option, then you can actually copy the SQL code generated by the CR report, modify it, then create a report using a command query and your modified query
    • Proposed as answer by Eng.salim Thursday, February 18, 2010 12:58 PM
    • Marked as answer by Harry Zhu Thursday, February 25, 2010 2:37 AM
    Thursday, February 18, 2010 12:58 PM

All replies

  •  CR will generate a SQL statement for you based on your table links, groupings etc. If you're not familiar with it, using a "command query" gives you that control. You build the query used in the CR report, instead of using table links, etc.

    Read up on the command query option, then you can actually copy the SQL code generated by the CR report, modify it, then create a report using a command query and your modified query
    • Proposed as answer by Eng.salim Thursday, February 18, 2010 12:58 PM
    • Marked as answer by Harry Zhu Thursday, February 25, 2010 2:37 AM
    Thursday, February 18, 2010 12:58 PM
  • What if you want to compare the text or value of the textbox of the other form to the crystal report databse? Because i want to edit the query of the crystal report that will show the account_number that is equal to the value of textbox in the other form. Tnx
    Saturday, October 9, 2010 10:05 AM