ActPresentation.com HOME FAQ FORUM info@ActPresentation.com
Phorum: speed & power.

ActPresentation.com


Add-ons for Sage ACT! CRM

ACT! addons by ActPresentation.com : Abacus Calculated Fields, PicturePlus, Quick Navigation List, Employment History, Quick Search, Presentation for ACT!

ToDec

Posted by: Richard

Date: April 13, 2007 07:12PM

I am trying to use the ToDec to convert a string into a field which is a currency and says it is decimal.
The error says that the formula is a floating field and then suggests to use the ToDec to convert.

Please explain why this is not working.

Here is the actual code attempted:

CASE [Contract Package]
WHEN 'Spotlght Affair' THEN ToDec(2450)
WHEN 'Ul;timate Experience' THEN ToDec(3650)
WHEN 'Dance Extravaganza' THEN ToDec(4950)
WHEN 'Club Spotlght' THEN ToDec(6950)
WHEN 'Elegance' THEN ToDec(1550)
WHEN 'Dedication'THEN ToDec(1750)
END

also tried with ' inside to make char string: but says syntax error
WHEN 'Spotlght Affair' THEN ToDec( '2450' )

Re: ToDec

Posted by: Admin

Date: April 14, 2007 09:59AM

Richard,
try the following formula :

CASE [Contract Package] 
    WHEN 'Spotlght Affair'      THEN 2450.0
    WHEN 'Ul;timate Experience' THEN 3650.0
    WHEN 'Dance Extravaganza'   THEN 4950.0
    WHEN 'Club Spotlght'        THEN 6950.0
    WHEN 'Elegance'             THEN 1550.0
    WHEN 'Dedication'           THEN 1750.0
END




Edited 1 time(s). Last edit at 04/14/2007 10:00AM by Admin.

ACT! software CRM addons - best plugins for ACT contact management software ( Act! by Sage software : ACT!2005, ACT!2006, ACT!2007, ACT!2008, Act by Sage Premium for Workgroups ).
Custom addon solutions ( ACT! add ons ) development and CRM (Customer Relationship Management) software training and consulting.