Is that the name of a procedure you wrote? If not, I think the syntax is NameOfYourAttachmentField.AttachmentCurrent.
FWIW, I have no idea what happens if there is no attachment in a field when you navigate to a record, mainly because I would not use an attachment field. Causes too much db bloat and they are a type of multi value field IIRC, which is another thing I wouldn't use. What I would use is a table with file paths to the file and an image control. However I don't see from your last post exactly why you're stuck at the moment - unless it is OnAttachmentCurrent because the error message doesn't seem to have anything to do with resizing.
BTW, you just close the file dialog when you drop the control (image control) onto your form and then when the control is highlighted in design view, just set the picture type to "linked" on property sheet Format tab. After that, you can set the control source property in code - maybe in the Current event.
Last edited by Micron; 10-15-2020 at 04:57 PM.
Reason: clarification
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.