troubleshooting Question

MS Access "Array Index Out of Bounds" Error

Avatar of ayngalt
ayngalt asked on
Microsoft OfficeMicrosoft AccessOutlook
3 Comments2 Solutions1573 ViewsLast Modified:
I have an Access application that we've been using for years.  One of things it does is looks in an Outlook folder and pulls any new files that have been copied to the folder.  Today we started getting an error "Array index out of bounds".  When I go to debug, it highlights the following line of code:

oMsg.Attachments.Item(1).SaveAsFile "C:\Faxes\" & TheFileName

Any ideas of how to work around this?
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros