View Full Version : Display Image


treva26
09-19-2007, 08:00 PM
Can I write vba code that does what this macro does:

SetValue
[Forms]![Personnel and Training Form]![imgEmployee].[Picture]
[Forms]![Personnel and Training Form]![Photo]

It takes the file path from the [Photo] field and sets the image [imgEmployee] to display it.

treva26
09-19-2007, 08:06 PM
Ideally it would also set the [Photo] field to:

"C:\Documents and Settings\tlancaster\Desktop\Photos\no_image.bmp"

if it is empty.

Guus2005
09-20-2007, 05:25 AM
Try this.
You will love it.

:D

Oldsoftboss
09-21-2007, 12:28 AM
Or maybe this will help......