Yes, the "=DelRes(0)" function you see specified in the 1st of the two OP images is coded in the form's module and executes normally when the "Delete...
Always better to prevent errors where possible but I don't know how to test for an empty clipboard. I suspect you could trap the error easily enough...
I have several "old apps" that when developed used "Right-click" functions extensively. In most cases, the right-click function involved launching a...
It probably will be a bit faster but the constant emptying and populating of the local table will bloat the front-end so it will need to be compacted...