Running a public form function (via shortcut menu)
Posted on 2016-10-22
I have a Listbox within a form that occasionally needs to give the ability to switch row-source. I currently have a toggle button on this form that switches it, but having the extra button on the form is ugly (especially since it will hardly be used). I wanted to add a shortcut menu to this Listbox (easy enough), but I want it to be able to call the function within the form. Usually, I'd put the function in an external module, but time is against me and it's not essential.
Will it be technically ok to do this (even though I know it's not best-practice)?