Hi
I’m trying to create my own custom aggregated function:
Ex:
SELECT Obs_Date, Item, MyAvg(Px)
FROM Sales
GROUP BY Obs_Date, Item;
I know how to create a vba function that will deal with single record… but somehow, I can’t figure how to create one that will deal with aggregated data (ie: receive and array populated by an sql statement… a little bite like the “avr()” function does)
Thanks in advance for your help
Ben
I’m trying to create my own custom aggregated function:
Ex:
SELECT Obs_Date, Item, MyAvg(Px)
FROM Sales
GROUP BY Obs_Date, Item;
I know how to create a vba function that will deal with single record… but somehow, I can’t figure how to create one that will deal with aggregated data (ie: receive and array populated by an sql statement… a little bite like the “avr()” function does)
Thanks in advance for your help
Ben