>>I have a weekly report that details the products ordered for each day. The data is sorted by date, customer, product number. There is a footer for customer and date. But in the date footer, I want a count of the number of unique customers for that day. How can I do this?
>>
>>thanks
>>
>>Brenda
>
>I suppose Customer group is after Date one. If so:
>Put a variable in report (nUniqCust) Inital value = 0, reset value based on Date, Calculation type - None
>
>In OnExit Event on the Customer group footer put:
>_vfp.SetVar([nUniqCust], nUniqCust = nUniqCust + 1)
>
>then in Date Group footer print that variable.
Interesting. I'm now facing a similar problem.
I have two groups:
ProjectName
Caption
I want to print totals in Caption group footer and in Project group footer. However, if I only have one Caption, I don't want to print Caption Footer.
I'm thinking, can I use your/mine idea or I better try Cetin's idea with array or a modification of it with an extra cursor.
If it's not broken, fix it until it is.
My Blog