Help with creating User defined Function

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.

The Base Guide is a fine piece of documentation: English documentation II | LibreOffice Documentation - LibreOffice User Guides