Run time error 2202

Hi all.

I get the following error when printing a report (it was working fine for the past 3 months until today), the report prints images with each record.

Run-time error '2220':
Microsoft Office Access can't open the file '\\path\909655.bmp'

This is the code I use to populate the image:
Option Compare Database
Option Explicit

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

If Me!Expr3 = "" Or IsNull(Me!Expr3) Then

Me!ImageFrame.Visible = 0
    Me!ImageFrame.Visible = -1
    Me!ImageFrame.Picture = Me!Expr3
End If

End Sub

The Debugger highlights the following line: Me!ImageFrame.Picture = Me!Expr3

Expr3 is the following: Expr3: IIf([ImageFile] Is Null Or [ImageFile]="","","\\win2k3-2\apps\MAS90\images\ASC\" & [ImageFile])

Any ideas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Does the file in question exist?
Mike EghtebasDatabase and Application DeveloperCommented:
It seems, you have a file name in your database which no longer exists in the directory; or it may have been renamed.

Btw, you can change your code to:

IIf(Nz([ImageFile],"")="","","\\win2k3-2\apps\MAS90\images\ASC\" & [ImageFile])

to do the exact same thing as your code does.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
printmediaAuthor Commented:
Got it! Someone renamed the file and didn't notify us. Thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.