Hi
I would like to use the statistic functions from Excel in Access.
I have added “Microsoft Excel 5.0 Object Library” to the references.
I have tried:
________________________________________________________________
Dim obj As Object
Set obj = CreateObject("Excel.Application"
MsgBox obj.Application.median(1, 2, 3, 4, 5, 6, 7, 8, 12)
obj.Quit
Set obj = Nothing
________________________________________________________________
This works fine.
The problem arises with defining array in a way that Excel recognizes them.
I’ve tried
________________________________________________________________
Dim obj As Object
Set obj = CreateObject("Excel.Application"
MsgBox obj.Application.quartile([1, 2, 3, 4, 5, 6, 7, 8], 120)
obj.Quit
Set obj = Nothing
________________________________________________________________
Which Results in “Type Mismatch”
Excel help says to use {} in VBA to define array.
But that results in an error also.
Since there are a number of statistical functions I would like to use I prefer this method to writing VBA code for each function.
Thanks
Claude
I would like to use the statistic functions from Excel in Access.
I have added “Microsoft Excel 5.0 Object Library” to the references.
I have tried:
________________________________________________________________
Dim obj As Object
Set obj = CreateObject("Excel.Application"
MsgBox obj.Application.median(1, 2, 3, 4, 5, 6, 7, 8, 12)
obj.Quit
Set obj = Nothing
________________________________________________________________
This works fine.
The problem arises with defining array in a way that Excel recognizes them.
I’ve tried
________________________________________________________________
Dim obj As Object
Set obj = CreateObject("Excel.Application"
MsgBox obj.Application.quartile([1, 2, 3, 4, 5, 6, 7, 8], 120)
obj.Quit
Set obj = Nothing
________________________________________________________________
Which Results in “Type Mismatch”
Excel help says to use {} in VBA to define array.
But that results in an error also.
Since there are a number of statistical functions I would like to use I prefer this method to writing VBA code for each function.
Thanks
Claude