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
Post a Comment