on 07-23-2008 8:48 AM
In crystal report 2008,I create a SQL Expression Fields,but how to write the SQL query in the formula workshop,
Edited by: nylethx1 ye on Jul 23, 2008 9:48 AM
You can also use DB specific functions on their own; this is an example SQL expression formula for MS Access:
{fn UCASE(`Customer`.`City`)}
The SQL Expression will be added to the report's SQL statement, so keep this is mind when creating your formula.
Edited by: Fritz Feltus on Jul 23, 2008 10:23 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i receiving error on sql expression field.i am using ms access..
but i receive a message
error in compiling sql expression
failed to retrieve data from database
ado error code 0x80040e14.........
.......
native error ..... how to clear tha??????
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your first step is to Google the error code, which is specific to the database. Because Access is not a client/server database you may not be able to use SQL Expressions with it - I could be wrong though as I do not really work with Access. Also, you cannot use any Crystal functions in a SQL Expression - everything you do needs to be in the same syntax that Access uses for SQL.
-Dell
(
Select count(*) from Table
)
Your query must return a unique value.
From Don: SQL Expressions were not designed to run SELECT statements. Use a Command object for selects.
Edited by: Don Williams on Nov 2, 2009 9:29 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.