Please Help

peterbowles

Registered User.
Local time
Today, 00:44
Joined
Oct 11, 2002
Messages
163
I have a from that displays records with photos for each record.

The Image is located from an image path

If there is no image path I want to get the image Frame to display a certain image this is the code

If PhotoPath = "" Then

PhotoPath = "C:\Documents and Settings\Peter\My Documents\My Pictures\pic.gif"

Else

Me![ImageFrame].Picture = Me![PhotoPath]

End Sub

But is does not work it will not store the defaukt path in to ImagePath

PLEASE HELP
 
try

If isnull(PhotoPath) Then PhotoPath = "C:\Documents and Settings\Peter\My Documents\My Pictures\pic.gif"

Should work since if there is not anything in there then it is probably a Null field.
 

Users who are viewing this thread

Back
Top Bottom