Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Expression Editor not found in Formula workshop

Status
Not open for further replies.

jcwnow

Technical User
Sep 15, 2008
2
US
I'm trying to write a sql expression in my Crystal report, but the sql expression editor does not exist in the Formula Workshop for my report.

I wrote a report a few weeks ago and in that report, the sql expression editor is there.

Both reports are written against the same Oracle odbc database.

I noticed what seems to cause the problem. The report I'm having problems with has existing command objects. The report that had no problems did not have a command object. I then added a command object and the sql expression editor then disappeared from the Formula Workshop.

I running Crystal 12.2.0.290 with an Oracle odbc connection.
 
You can't use SQL expressions if you are using a command. You should be building the expression directly into the command instead.

-LB
 
The command objects in this report aren't used to provide selection. They create virtual tables that supply extra data to the report. My primary selection is done through record selection in the formula workshop and that's where I'm trying to use the sql expression. I'm doing that so I push the selection work down to the server. I've tried to write the sql expression directly into the record selection but I keep getting syntax errors on basic stuff such as

"EMPLOYEE"."TERM_DATE" = TO_DATE('01/01/1700','MM/DD/YYYY')

I was hoping that if I wrote this TO_DATE expression in sql expression editor, I'd be able to use it in the record selection editor above withot getting the errors.
 
Why use a SQL expression for this? You should be able to use:

{EMPLOYEE.TERM_DATE} = date(1700,1,1)

This will pass to the server.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top