I know these functions work in excel and I was trying to use them in an Access query but they seem to be giving an error. How should I go about using the NORMSDIST and NORMSINV function in Access?
Try adding the "Microsoft Excel Object Library" reference in the references category.
Then use a function like this.
Code:
Public Function norm(z As Double) As Single
Dim a As Double
Dim objExcel As Excel.Application
Set objExcel = New Excel.Application
norm = objExcel.WorksheetFunction.NORMSDIST(z)
Set objExcel = Nothing
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.