Hi, i have a Db with DBPix for inserting and viewing images. The code for inserting an image is:
strInputFileName = ahtCommonFileOpenSave(ahtOFN_FILEMUSTEXIST, _
"", strFilter, , ".jpg", "", "Imagen para '" & Me.link & "':", hwnd, True)
[...]
Me.Parent!Secundario68.Form!CtrlActiveX0.ImageLoadFile (strInputFileName)
The main form (vegetable species) has, in order to identify the specie with several images, two subforms: one is a continuous form (Secundario70) with the image name, and by selecting a row in this subform the matching image is displayed in a simple subform (Secundario68).
If after adding the image, i try to delete it (implemented in a command button) the code gives the error:
Run-time error ‘3218’: Could not update; currently locked.
It doesn't occur when there's left another image in the main record, or when i delete the last image but before there was another one (or more than one) deleted first.
Can anybody say how to go around this error?
I would be gratefull for any help given.
strInputFileName = ahtCommonFileOpenSave(ahtOFN_FILEMUSTEXIST, _
"", strFilter, , ".jpg", "", "Imagen para '" & Me.link & "':", hwnd, True)
[...]
Me.Parent!Secundario68.Form!CtrlActiveX0.ImageLoadFile (strInputFileName)
The main form (vegetable species) has, in order to identify the specie with several images, two subforms: one is a continuous form (Secundario70) with the image name, and by selecting a row in this subform the matching image is displayed in a simple subform (Secundario68).
If after adding the image, i try to delete it (implemented in a command button) the code gives the error:
Run-time error ‘3218’: Could not update; currently locked.
It doesn't occur when there's left another image in the main record, or when i delete the last image but before there was another one (or more than one) deleted first.
Can anybody say how to go around this error?
I would be gratefull for any help given.