N
Neuder
Being a rookie at VB, I have found references to using Excel functions or
add-ins in access. I still am not clear on how to use them for data that
exists in a table or query. As an example the Median function in excel. I
know there are ways to program for the median in VBA but I'm using this as an
example of my problem. If I have a table with the following items:
Week SCC Milk
1/1/04 234 72.5
1/8/04 225 68.7
1/15/04 228 74.6
1/22/04 210 77.9
And I want to use an excel function such as Median or an addin like
statistical tools, how do I get the field data into the argument?
Public Function xlMedian( FName as Single) As Double
xlMedian = Excel.Application.Median(FName)
End Function
The knowledge base articles use keyboard input but I'm not sure how to use
existing data? Do I need to create some type of array first?
Again I'm a newbie but appreciate the help found in this forum!!
Dr. Lou Neuder
Green Meadow Farms
Elsie, Michigan
(e-mail address removed)
add-ins in access. I still am not clear on how to use them for data that
exists in a table or query. As an example the Median function in excel. I
know there are ways to program for the median in VBA but I'm using this as an
example of my problem. If I have a table with the following items:
Week SCC Milk
1/1/04 234 72.5
1/8/04 225 68.7
1/15/04 228 74.6
1/22/04 210 77.9
And I want to use an excel function such as Median or an addin like
statistical tools, how do I get the field data into the argument?
Public Function xlMedian( FName as Single) As Double
xlMedian = Excel.Application.Median(FName)
End Function
The knowledge base articles use keyboard input but I'm not sure how to use
existing data? Do I need to create some type of array first?
Again I'm a newbie but appreciate the help found in this forum!!
Dr. Lou Neuder
Green Meadow Farms
Elsie, Michigan
(e-mail address removed)