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 January 13th, 2004, 11:11 AM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default SQL Expressions Fields

Hi i'm kinda new to crystal reports(9.0) so i would greatly appreciate any help.

Im trying to use this simple SQL statement(as an expression field):

SQL Select
    "Currency_Rates"."CR_CODE",
    "Currency_Rates"."CR_DATE",
    "Currency_Rates"."CR_BUY_RATE",
    "Currency_Rates"."CR_SELL_RATE",
    "Currency_Rates"."CR_RSN"
From
    "Currency_Rates"."Currency_Rates"
Where
    "Currency_Rates"."CR_CODE"="Customer"."C_CURRE NCY" and
    "Currency_Rates"."CR_DATE" <= CurrentDate
Order by
    "Currency_Rates"."CR_DATE DESC"


For some reason i get an error stating my syntax is wrong:
"Incorrect syntax near the keyword 'FROM'"

... i've tried changing it around (no quotes,single quotes,etc) numerous times ... but i can't seem to get it right


Hopefully my error is obvious to someone out here :D

THx in advance :D
 
Old January 23rd, 2004, 07:21 AM
Registered User
 
Join Date: Jan 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

you cannot use the full sql statements in the SQL expression editor, but only the functions that are available in the function box at the top. You can use a command in CR 9 to get the output of your query in the report.
 
Old January 23rd, 2004, 10:38 AM
Registered User
 
Join Date: Jan 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

heh yah thanks i figured it out on my own in the end

so stoopid :D


but thanks for replying :D

I guess I just prefer to see the dark side of things. The glass is always half empty. And cracked. And I just cut my lip on it. And chipped a tooth.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Error using SQL Expressions gulien Crystal Reports 0 December 9th, 2006 04:07 AM
SQL Expressions shazia1 Crystal Reports 0 June 15th, 2006 05:20 AM
SQL Expressions and Parametres sarajh Crystal Reports 0 August 2nd, 2004 10:39 PM
CRAXDRT Error - SQL Expressions sreedhar Crystal Reports 0 July 12th, 2004 06:34 AM
ASP SQL fields in order ALoPresto Classic ASP Databases 2 July 25th, 2003 02:54 PM





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