I can't seem to get it working... So I made a working small version.
Because it's to big for a post here.
THAT'S not a SMALL example project !! That's HUGE.
Simple project would be to create just one form with a few comboboxes for testing the SQL.
I did manage to get it going (although I have no Mac and it was hard to change the paths etc).
It does seem that there is something else going on.
The problem only exists in the TDBLookupComboBox.
When I change the Scheidsrechter line to just this:
'Achternaam AS Scheidsrechter, ' +
it does work (although not complete name of course).
But when I change it to this:
'CAST(COALESCE(Achternaam, "aa") AS TEXT) AS Scheidsrechter, ' +
it stops working and the TDBLookupComboBox shows the (MEMO).
The fields go through the dbmemoGetText so that's not a problem.
I think the TDBLookupComboBox somehow checks the field type and might overrule the DisplayText entirely.
Haven't found a fix yet.