M
Mike C
Hello,
Is it possible in Access to write your own custom aggregate functions?
What I am trying to do is write a function that will take a column of state
abbreviations and output the column as a string containing the long names of
the states separated by commas. I want to be able to put the function in a
textbox in the group footer of my report using the syntax:
=GenerateStateNames([State])
This is the exact same way that Sum() would behave on a column when used in
a footer. However, I have been unable to find out a way to code the function
so that it accepts [State] as a collection of values. I am able to pass it
as string and it will return the first value in the column, but for all
intents and purposes that is completely useless.
If anyone knows how I might accomplish this, it would be a great help.
Thanks,
Mike
Is it possible in Access to write your own custom aggregate functions?
What I am trying to do is write a function that will take a column of state
abbreviations and output the column as a string containing the long names of
the states separated by commas. I want to be able to put the function in a
textbox in the group footer of my report using the syntax:
=GenerateStateNames([State])
This is the exact same way that Sum() would behave on a column when used in
a footer. However, I have been unable to find out a way to code the function
so that it accepts [State] as a collection of values. I am able to pass it
as string and it will return the first value in the column, but for all
intents and purposes that is completely useless.
If anyone knows how I might accomplish this, it would be a great help.
Thanks,
Mike