Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NORMSDIST and NORMSINV functions 1

Status
Not open for further replies.

1661

MIS
Aug 9, 2002
12
US
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?

Please reply.

Thanks!
 
1661,

These function do not exist in Access. Sooooooooo

This may work for you.

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

Just create another function for NORMSINV.

Hey I hope this helps..

[thumbsup2]


 
Thank you very much...I just tried it and I think it works!!

Thanks again...really appreciate it
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top