
Hi,
I am working on the ACCESS database that someone developed. Each form uses a certain kind of graphics file such as .jpg, .ico.
Since I am working on this database from my work environment, whenever I tried to open any form, it hangs for a while looking for the graphics file which does not exist on my network.
I try to remove it from the form property, but that is not easy either.
Whenever I highlight the whole path & graphics file name and press [Delete] key, it disappears, but as soon as I leave the field, then it comes right back.
How can I remove the use of any graphics on the form?
Thanks.
Public Function DXM_zzDeleteImageOLE(sFrmN
'This will get rid of a stuck OLE image on a form, wherein you get the message "OLE Server not registered ..."
' ?APP_zDeleteImageOLE("",""
DoCmd.OpenForm sFrmName, acDesign
DeleteControl sFrmName, ctlName
DoCmd.Close acForm, sFrmName, acSaveYes
DXM_zzDeleteImageOLE = "Control Deleted"
End Function
Pass (or hard code) the name of the Form and the Control Name.