I posted that link because when I started this thread the forum software suggested it. Base uses the term User defined Function as well, apparently to mean something totally different, and AFAIK, undocumented, or minimally documented. I do think a SQL solution might well have been possible, but SQL is not my first language and it would have taken some digging.
No need to apologize. Thank you all for your help.