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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blob field or memo field cannot be used in a formula

Status
Not open for further replies.

AndrewG1976

Technical User
Feb 10, 2004
20
AU
CR: 8.0
Oracle: 8.1.7

I have a report I'm trying to customize. When I try to refresh the report I get the error "Blob field or memo field cannot be used in a formula".

The formula it is complaining about is:

==========

@Name and Email Address

trim(
if {incomingmessageview.SENDERNAME} <> {incomingmessageview.SENDEREMAILADDRESS} then
trim({incomingmessageview.SENDERNAME}) + " <" + trim({incomingmessageview.SENDEREMAILADDRESS}) + ">"
else
trim({incomingmessageview.SENDEREMAILADDRESS}))

==========

The view fields are:

incomingmessageview.SENDERNAME VARCHAR2 (300)
incomingmessageview.SENDEREMAILADDRESS VARCHAR2 (300)

I know that because the fields exceed 254 characters, they are treated as memo fields by Crystal, and in versions of Crystal prior to version 9, you are not allowed to use memo fields in formulas.

Is there a way to overcome this problem?
 
Create SQL Expressions (Insert->Field Objects->Right click SQL Expressions) to cast the fields into < 254 fields and then you can use them.

Or you might create a View on the database to do this for you.

-k
 
I tried to create the following SQL expression called "%Name" but it doesn't work:

convert (varchar(200),incomingmessageview.SENDERNAME)

What's wrong with my syntax?
 
It doesn't work, or it returns an error, or?

What connectivity are you using?

I generally use CAST not CONVERT (less typing).

-k
 
Sorry returns an error. I tried "cast" as well and same error:

ODBC error: [Microsoft][ODBC driver for Oracle][Oracle]ORA-00936: missing expression

Seagate Crystal Reports
Error in compiling SQL Expression: Invalid function found here.

I'm using ODBC connectivity.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top