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

How can I use Memo fields, very long fields or VarChars in v8.x?

Report Development

How can I use Memo fields, very long fields or VarChars in v8.x?

by  kenhamady  Posted    (Edited  )
If you have a Memo or VarChar in CR versions before v9, you will not be able to use it in a formula (except with IsNull) or for sorting, grouping or selecting. If you are not connecting via ODBC, but are using a native database driver, you may only see the first 255 characters of your field. A new KB article that gives 2 workarounds was posted by user RoadKill and is at the end.

The following explanation of the limitation is taken from a Seagate FAQ:

Crystal Reports does not currently support Memo fields in formulas or selection formulas. Because of this, you will not be able to browse data in Memo fields or reference Memo fields in formulas.

Crystal Reports reads database fields that meet any of these criteria as Memo fields:
?Fields exceeding 254 characters in length.
?Fields formatted as VarChar in the database (variable character length field).
?Fields formatted as Blob or Memo in the database.


NOTE One exception is the IsNull or NextIsNull functions. You can use Memo fields with these functions in a conditional formatting formula or a formula field. For more details on this, go to:

http://support.crystaldecisions.com/kbase/c2007285.asp

There are two newer workarounds available for some SQL Based databases:

1) Using a SQL expression within the CR designer
2) Using a view in the database.

For details see the following article:

http://support.crystaldecisions.com/kbase/c2009954.asp

Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
http://www.kenhamady.com/
tek2(AT)kenhamady.com
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top