Ed_Farias
Nov 13th, 2000, 03:07 PM
OK, I have this code, pretty straight forward I thought.
Dim TempImage as String
TempImage = rsName.Fields("Image").Value
If TempImage = "" Then
picComic.Picture = LoadPicture(App.Path & "\blank.gif")
Else
picComic.Picture = LoadPicture(rsName.Fields("Image").Value)
End If
In other words I have a MSaccess Database with an Image field. I want the code to load a standard image when nothing is in the image field. The other half of the statement works when there something in the field. Or in I add like "none" to the image field, and change the code from
If TempImage = "" TO If TempImage = "none"
Then it works fine.
Any suggestions are helpful. Thanks
Ed
Dim TempImage as String
TempImage = rsName.Fields("Image").Value
If TempImage = "" Then
picComic.Picture = LoadPicture(App.Path & "\blank.gif")
Else
picComic.Picture = LoadPicture(rsName.Fields("Image").Value)
End If
In other words I have a MSaccess Database with an Image field. I want the code to load a standard image when nothing is in the image field. The other half of the statement works when there something in the field. Or in I add like "none" to the image field, and change the code from
If TempImage = "" TO If TempImage = "none"
Then it works fine.
Any suggestions are helpful. Thanks
Ed