Here is code... What is strange is that this has worked fine for months... and no changes have been made. any help is appreciated. Steve
...
'a hardcoded array list is not the prefernce however there was difficulty
'in iterating the report collection in the remote database
ReportList(0) = "FAS133 Bucket Price Sensitivity"
ReportList(1) = "FAS133 Bucket Price Sensitivity by Dur"
ReportList(2) = "FAS133 Bucket Price Sensitivity Report"
ReportList(3) = "FAS133_Bucket_Summary"
ReportList(4) = "FAS133_Bucket_Summary_Down"
ReportList(5) = "FAS133_Bucket_Summary_up"
'the following report does not work in the out-of-the-box version of ANT - Reason unknown 04/04/2002
'ReportList(6) = "FAS133_PriceSensitivity"
ReportList(7) = "Hedge_Allocation_Summary"
ReportList(8) = "Hedge_Correlation_Test"
ReportList(9) = "TrancheShockDetail_Price_Sensitivity"
ArchiveFldr = ConcatArchiveFolder(Period, HedgeEnd, Strata, OtherDescp)
'get a handle on the remote database object
ReportDBName = AppGlobal.GetApplicPath("LIVE_ANT"

& "user\FAS133_Report.mdb"
Set appAccess = CreateObject("Access.Application.9"

appAccess.OpenCurrentDatabase ReportDBName
'iterate the array and output each report in the remote db to snapshot format and save into the archive directory
For r = 0 To UBound(ReportList)
If ReportList(r) <> "" Then
HERE IS WHERE CODE FAILS WITH ERROR 2024!
appAccess.DoCmd.OutputTo acOutputReport, ReportList(r), acFormatSNP, _
AppGlobal.GetApplicPath("ARCHIVE_ANT"

& ArchiveFldr & "\" & ReportList(r) & ".snp", False
End If
Next r
Steve Medvid
"IT Consultant & Web Master"
Chester County, PA Residents
Please Show Your Support...