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

A string is required

Status
Not open for further replies.

sammybee77

Technical User
Jun 18, 2001
98
GB
Hi All,

I have written a formula that reads

if not isnull (field1) then field1 else @formula1

The result of @formula1 is a number however I am getting the error that a string is required, where do I put the string and which do I use?

Many thanks


Sam
 
If field1 is a string than you need to say ToText(@formula1) for it to work. THEN and ELSE have to match.

If this doesn't work, please copy and paste the exact formulas into your next post. Ken Hamady, On-site Custom Crystal Reports Training & Consulting
Public classes and individual training.
Guide to using Crystal in VB
tek@kenhamady.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top