Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Formula Help Post Reply Post New Topic
Author Message
yeller
Newbie
Newbie
Avatar

Joined: 06 Feb 2014
Online Status: Offline
Posts: 12
Quote yeller Replybullet Topic: Formula Help
    Posted: 07 Feb 2018 at 8:43am

I wrote 2 formulas and am attempting to combine them (multiply). The first formula is numeric. The second formula is text based. Although the second formula is a texted based user value field, the output is always numeric. Is there a way to combine them to produce a numeric total?

IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 07 Feb 2018 at 12:43pm
Have attempted to convert the result of the second formula to a numeric? CDbl function?

IP IP Logged
yeller
Newbie
Newbie
Avatar

Joined: 06 Feb 2014
Online Status: Offline
Posts: 12
Quote yeller Replybullet Posted: 08 Feb 2018 at 1:59am
Thank you, yes I have. Formula workshop gives the message: No errors found. As soon as I close the workshop it gives the error message: The string is non-numeric.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 08 Feb 2018 at 4:23am
Apparently not all your data can be converted to numeric.  One way as a test is to use a formula like this to see when it does not like the data.

if isnumeric({somefield}) then 'true' else 'false'
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.