P
Pat
Hi,
I have a function in Excel VBA that takes a Range as an argument.
I want to translate this into Access. What is the corresponding
argument type in Access? Recordset?
For example:
in Excel, my function is:
Public Function myFunction(returns As Range) As Double
So in Access, is it:
Public Function myFunction(returns As Double) As Double
or is it:
Public Function myFunction(returns As Recordset) As Double
I just want to take a selected column of returns, grouped by fund ID,
perform a few calcs, and return a single number.
Each return in the returns column is stored as a Double.
The query I want to use it in is very simple, from 1 table:
SELECT Performance.ID, myFunction(Performance.Returns) AS Answer
FROM Performance
GROUP BY Performance.ID;
Or should I just calculate this in a Sub procedure, opening the query
from inside the Sub? I am unsure.
Any help would be appreciated.
Thank you,
Pat
I have a function in Excel VBA that takes a Range as an argument.
I want to translate this into Access. What is the corresponding
argument type in Access? Recordset?
For example:
in Excel, my function is:
Public Function myFunction(returns As Range) As Double
So in Access, is it:
Public Function myFunction(returns As Double) As Double
or is it:
Public Function myFunction(returns As Recordset) As Double
I just want to take a selected column of returns, grouped by fund ID,
perform a few calcs, and return a single number.
Each return in the returns column is stored as a Double.
The query I want to use it in is very simple, from 1 table:
SELECT Performance.ID, myFunction(Performance.Returns) AS Answer
FROM Performance
GROUP BY Performance.ID;
Or should I just calculate this in a Sub procedure, opening the query
from inside the Sub? I am unsure.
Any help would be appreciated.
Thank you,
Pat