Page 2 of 2

Re: Add values from multiple text boxes

Posted: Fri Aug 05, 2016 7:59 am
by HighAley
Hello.

Sorry, there is no Inventory2000Data.mdb so we can't render your report. But we will try to guess.

Please, try to create a variables (TotalSum) and use next expression:

Code: Select all

{TotalSum += Sum (round(Parts.SqInch*(Parts.InvParts.Cost*Parts.InvParts.WASTE),2))}
After this you should show the value of the TotalSum variable.

If you still need our help, please, send us all necessary data for your report template.

Thank you.

Re: Add values from multiple text boxes

Posted: Sat Aug 06, 2016 12:03 am
by jrSD
AAACCCKKKKKk!! I still am not getting it. The first attachment I posted in the thread has the mdb database included in the compressed file. I am submitting it again.
"TotalSum" would be the name of the variable. I get that, and if I make the value a hard number, the variable worked correctly, though when I add the code:
{TotalSum += Sum (round(Parts.SqInch*(Parts.InvParts.Cost*Parts.InvParts.WASTE),2))}
as the value or expression, I come up with errors.

I will be so grateful for additional help.

Re: Add values from multiple text boxes

Posted: Mon Aug 08, 2016 9:14 pm
by Alex K.
Hello,

Please check the modified report in the attachment.

Thank you.

Re: Add values from multiple text boxes

Posted: Tue Aug 09, 2016 5:12 pm
by jrSD
THANK YOU VERY MUCH!!!!

Re: Add values from multiple text boxes

Posted: Wed Aug 10, 2016 6:39 am
by Alex K.
Hello

We are always glad to help you!
Let us know if you need any additional help.

Thank you.

Re: Add values from multiple text boxes

Posted: Tue Jul 23, 2019 8:55 pm
by shiva
Can you please explain how you did it, I am struggling to do the following.
I have calculated a summary value in a footer band for a group based on a condition of a column value, I want to use this value further in the same band and add and subtract values calculated in other fields. Is it possible?

Re: Add values from multiple text boxes

Posted: Wed Jul 24, 2019 7:57 am
by Lech Kulikowski
Hello,

You can use variables for calculations and then use it in necessary expressions.

Thank you.

Re: Add values from multiple text boxes

Posted: Wed Jul 24, 2019 11:26 am
by shiva
Can you give a simple example where a variable stores the summary value with if condition and is stored in a variable, it gives me some error to parse. Can I use a simple + or - to add and subtract this derived value to another column using the variable. A screenshot will be helpful.
Thanks,

Re: Add values from multiple text boxes

Posted: Thu Jul 25, 2019 6:29 am
by shiva
To elaborate further I put this in the variable
SumIf (Datasetname.column name, Datasetname.columnname1 == true) +Datasetname.columnname3...how do I refer to name of the databand, it gives me errors like not accepting the number of arguments etc. please advise.

Re: Add values from multiple text boxes

Posted: Thu Jul 25, 2019 7:54 am
by Lech Kulikowski
Hello,

You should use the data source name or use the following expression in the text expression:

If the issue still present, please send us a sample report with test data which reproduces the issue for analysis.

Thank you.