Crash while switching records

D

David

I have an application which loads pictures into forms
using a reference, example:

Private Sub Form_Current()
If IsEmpty(Me!picturefile) Or IsNull(Me!picturefile) Then
Picture1.Picture = "c:\blank.jpg"
Else
Picture1.Picture = Me!picturefile
End If
End Sub

If I move between records too quickly, before the picture
has loaded, I get a fatal Microsoft access crash. What
is the most reliable way for me to ensure that the
pictures are fully loaded before the user switches to the
next record? thanks in advance!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top