Link to home
Start Free TrialLog in
Avatar of kosenrufu
kosenrufu

asked on

How to pass a record set to the Excel slope function in Access?

Hi Experts,

I have this type of data

WeekNo      SC_Dly_ProjAccurcy_Avg_Last_x_Wks
13      0.924868312317044
14      0.934322001485006
15      0.906667898893364
16      0.95072420264395

How can I programmatically use the Excel slope function within Access?

I have this code :
    Dim xlApp As Object

    Set xlApp = CreateObject("Excel.Application")

    'Use SLOPE() in an expression:
    'SomeVariable = xlApp.Slope(y, x)

    xlApp.Quit
    Set xlApp = Nothing


THANKS
ASKER CERTIFIED SOLUTION
Avatar of als315
als315
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
X(3) = 16