Hi Geoff,
This example should get you started in the right direction.
Tom
______________________________________
Option Compare Database
Option Explicit
Sub XIRRTest()
' Requires a reference set to the "Microsoft Excel (version) Object Library"
' Written by Matthias Klaey
'
http://www.mcse.ms/archive153-2004-3-463062.html
Dim objExcel As Excel.Application
Set objExcel = New Excel.Application
objExcel.RegisterXLL objExcel.Application.LibraryPath & _
"\ANALYSIS\ANALYS32.XLL"
Dim p(4) As Double
p(0) = -10000
p(1) = 2750
p(2) = 4250
p(3) = 3250
p(4) = 2750
Dim d(4) As Date
d(0) = #1/1/1998#
d(1) = #3/1/1998#
d(2) = #10/30/1998#
d(3) = #2/15/1999#
d(4) = #4/1/1999#
Debug.Print objExcel.Run("XIrr", p, d) ' Result: 0.374858599901199
objExcel.Quit
Set objExcel = Nothing
End Sub
______________________________________
I would appreciate it if anyone can let me know how to calculate the XIRR
function in Access 2003.