I am attempting to display an image on a form. The path/filename of the image to display is stored in the current record (txtImageName) and changes for every record. I'm using a bound object frame to display the picture. I need to be able to blank out the image for records where the filename is null. I have the following code running on the Current Event. Can anyone tell me how to blank out the picture when the file name is null?
Here is my existing code:
If Me!txtImageName <> "" Then
OLEBoundJpg.OLETypeAllowed = acOLELinked
OLEBoundJpg.SourceDoc = txtImageName
OLEBoundJpg.Action = acOLECreateLink
OLEBoundJpg.SizeMode = acOLESizeZoom
What goes here???