Arvin's Picture Database

  • Thread starter Thread starter Sierras
  • Start date Start date
S

Sierras

Hello,

I'm using Arvin's picture database that shows pictures in a form.
The problem is, if I delete on of the pictures, (say the second one),
the form will still show the first one when using the next button.

How can I cange this so that the form shows a blank picture or an icon
when there is no longer a picture to show??

Thanks
 
Create a picture (let's say a .jpg) with some type on it that says something
like:

"There is no picture for this record"

and name it NoImage.jpg, then change the code in the On Current event to
read something like:

If Not IsNull(Me.txtFileName) Then
Me.imgControlName.Picture = Me.txtPath & Me.txtFileName
Else
Me.imgControlName.Picture = Me.txtPath & "NoImage.jpg"
End If
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 
Back
Top