I have never test it if it can work for other examples. But before you can work with this macro you need a good understanding of the SQL language and also how data-forms are working. So I think start learning with making a power-filter when you can not make a power-filter I think this idea is also not working.
For what reason I did place the macro: it was a test for me as person if it was possible. The second reason there are also persons who search on internet and this forum. Those persons do not asked question but test it for there own. They also understand the warning in the begin in the tread I made about how difficult it is.
So I think: start with the power-filter
Be also aware this forum is not for asking question.
My last word on cascading listboxes with/without macros plus one simple alternative to cascading listboxes: viewtopic.php?f=100&t=94393
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice