A
Afrosheen
I have a form called frmpictframe. It has a picture frame inside the form
called imgEmpty.
I have on the form_current event: Me!imgEmpty.Picture = CurrentProject.Path
& "\NCI Pictures\" & Me!IdPict.Value. It works great if there's a picture. If
there isn't it gives me an error.
I put an on error code in it and that works. The problem is the error works
too good. It will even trigger if the picture is there.
What I want to to is create a statement when I add a new record and the
picture is not there then the field for the picture {idpict} will default to
"na.bmp" and will not create the error and display.
Here's what I have. Any suggestion woulds help
If IdPict = " " Then
IdPict = "na.bmp"
Endif
Me!imgEmpty.Picture = CurrentProject.Path & "\NCI Pictures\" &
Me!IdPict.Value
This is not working.
Thanks for your help.
called imgEmpty.
I have on the form_current event: Me!imgEmpty.Picture = CurrentProject.Path
& "\NCI Pictures\" & Me!IdPict.Value. It works great if there's a picture. If
there isn't it gives me an error.
I put an on error code in it and that works. The problem is the error works
too good. It will even trigger if the picture is there.
What I want to to is create a statement when I add a new record and the
picture is not there then the field for the picture {idpict} will default to
"na.bmp" and will not create the error and display.
Here's what I have. Any suggestion woulds help
If IdPict = " " Then
IdPict = "na.bmp"
Endif
Me!imgEmpty.Picture = CurrentProject.Path & "\NCI Pictures\" &
Me!IdPict.Value
This is not working.
Thanks for your help.