Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 26th, 2004, 12:05 PM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using a Quote in SQL Expression Editor

Hi. I am trying to get a count of records from a SQL table to display a summary on my CR report. I added a SQL Expression Field and put this SQL statement:

Code:
select count(*) from tbl_IL_ChangeControl where Status='Canceled'
When I try to check the syntax CR gives an error box saying "Error in compiling SQL Expression: ' ". I tried changing the single quote to a double one but that didn't work. If I remove the WHERE section it correctly returns and displays the total number of records.

Can someone tell me what I am doing wrong? I've search the net with no luck. I know you can do summary's using groups but I don't want my report to be displayed in groups.

Thanks,
Jason





Similar Threads
Thread Thread Starter Forum Replies Last Post
Is SQL Server 2005 Expression Edition sufficient ? shuhang2 VB Databases Basics 1 July 3rd, 2006 03:39 PM
Quote Form jbcobbs Beginning PHP 2 April 25th, 2006 06:02 PM
sql expression field zouky Crystal Reports 0 October 29th, 2004 02:18 AM
Stock Quote JonnyRPI Classic ASP Basics 1 June 3rd, 2003 09:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.