Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Simple Formulas Post Reply Post New Topic
Author Message
mikebird
Groupie
Groupie
Avatar

Joined: 04 Mar 2008
Location: United Kingdom
Online Status: Offline
Posts: 70
Quote mikebird Replybullet Topic: Simple Formulas
    Posted: 15 Apr 2008 at 2:36am
I need to create three columns of data from two columns in a table.

Very simple, but something is failing.

One column is the item_ref, so contains a load of text values. Other is the currency values, base_price. Three columns I need are SOR, MATS, HOURS.

SOR is all values in base_price except where MATS / HOURS are involved, so formula is

if {Ccs_Q_Sections.Ccs_Qos_Item_Ref} <> ["MATS", "HOURS"]
/then {Ccs_Q_Sections.Ccs_Qos_Base_Price#6}

fine.

others are similar to each other of course:

if {Ccs_Q_Sections.Ccs_Qos_Item_Ref} = "MATS"
then {Ccs_Q_Sections.Ccs_Qos_Base_Price#6}

if {Ccs_Q_Sections.Ccs_Qos_Item_Ref} = "HOURS"
then {Ccs_Q_Sections.Ccs_Qos_Base_Price#6}

These just show zero, where I can see item_ref is shown and MATS, HOURS come up in the same row. Should see the value. These formulae are wrong.

I have a feeling you'll be able to spot immediately what I am doing wrong!

Thanks

IP IP Logged
mikebird
Groupie
Groupie
Avatar

Joined: 04 Mar 2008
Location: United Kingdom
Online Status: Offline
Posts: 70
Quote mikebird Replybullet Posted: 15 Apr 2008 at 5:21am
Fixed by writing from scratch

Hindered encouraged to use crap template. Bad to rely on others' work


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.031 seconds.