MS Access VBA: how do I clear Image control? -


i have image control reads file disk user navigates. if there no file (an empty field), need erase previous image. microsoft page says follows:

sub form_click ()     picture1.picture = loadpicture() end sub 

but when it, access complains "the argument not optional"! tried loadpicture("") stated here , here, no avail. says "microsoft access can't open file '0'." how can clear picture in runtime? i'm using access 2002. in advance!

use following:

picture1.picture = "" 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -