stanchat
Posts: 7
|
| Posted: 04/18/2005, 2:29 PM |
|
I have a ms access products table and one of the fields is called ImageName and is used to store images of the products. I am using the FileUpload Component to upload images to my server. By default the ImageName field is populated with the text no_image_available.jpg. So even when a image has not been uploaded, something appears to the user instead of the red X. I have a image stored on the server called no_image_available.jpg and when someone uploads a real picture, It appears as though the image no_image_available.jpg is being deleted or overwitten.
Does anyone know what could cause this. Also does anyone know of a better way to implement the situation liek thsi when you want a dummy or filler image to appear when no actual image has been supplied.
|
 |
 |
peterr
Posts: 5971
|
| Posted: 04/19/2005, 5:30 PM |
|
You may want to take a look at this alternative solution: http://forums.codecharge.com/posts.php?post_id=48085
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
stan
|
| Posted: 04/19/2005, 5:57 PM |
|
Thanks it is now working. This is the code I used
if (Products.ImageLocation.value ="") then
Products.ImageLocation.value = "../images/no_image.jpg"
end if
|
|
|
 |
|