M
Matt
I am trying to use data from an Access table to create a bell curve. I can
do this in Excel but i'm having trouble in access.
Right now I've got a dollar value and 16 payment periods, the periods are
determined by how many months from first to last payment. The payments
should resemble a bell curve when plotted on an x-y scatter graph. I am
using the following in VBA:
Dim objExcel As Excel.Application
Set objExcel = CreateObject("Excel.Application")
Me.intNorm = objExcel.Application.NormDist(Me.intDR, Me.intMean,
Me.intSD, True)
objExcel.Quit
Set objExcel = Nothing
'---END---
Where:
intDR is the payment period or x value (1-16)
intMean is the mean (8.5)
intSD is the standard deviation (4.76095)
I have this behind a continuous form. under Form_Load()
When the form is opened, the output, intNorm, has the normal cumulative
distribution for the first period, 0.05759187, for all the periods.
Does anyone know why this isn't computing for each value?
It should be displaying increasing values, not the same value.
Thanks,
Matt
do this in Excel but i'm having trouble in access.
Right now I've got a dollar value and 16 payment periods, the periods are
determined by how many months from first to last payment. The payments
should resemble a bell curve when plotted on an x-y scatter graph. I am
using the following in VBA:
Dim objExcel As Excel.Application
Set objExcel = CreateObject("Excel.Application")
Me.intNorm = objExcel.Application.NormDist(Me.intDR, Me.intMean,
Me.intSD, True)
objExcel.Quit
Set objExcel = Nothing
'---END---
Where:
intDR is the payment period or x value (1-16)
intMean is the mean (8.5)
intSD is the standard deviation (4.76095)
I have this behind a continuous form. under Form_Load()
When the form is opened, the output, intNorm, has the normal cumulative
distribution for the first period, 0.05759187, for all the periods.
Does anyone know why this isn't computing for each value?
It should be displaying increasing values, not the same value.
Thanks,
Matt