I have a form that I enter things like name and date. On the form I also have a number field (intNum1) along with a logical field next to it. I use the logical field to indicate if I want the number to be included in the sum on my report. I want the entry listed even if the number is not included in the total.
I have the report laid out as I want, with all entries list by name and in date order. My problem is how do you only add up some of the records. I can sum all of them using Sum(intNum1) however I need to add a 'IF' clause - IF logcal1 = yes then add intNum1.
If anyone can help me it would certainly be of assistance, either by showing me the expression to use or suggesting another way to do this.
Thanks
Pukeko
"The Pukeko is a bold and fearless bird. It has learned that trains and motorcars are harmless and takes no notice of them." - WRB Oliver.
Thanks
I have the report laid out as I want, with all entries list by name and in date order. My problem is how do you only add up some of the records. I can sum all of them using Sum(intNum1) however I need to add a 'IF' clause - IF logcal1 = yes then add intNum1.
If anyone can help me it would certainly be of assistance, either by showing me the expression to use or suggesting another way to do this.
Thanks
Pukeko
"The Pukeko is a bold and fearless bird. It has learned that trains and motorcars are harmless and takes no notice of them." - WRB Oliver.
Thanks