Right, I should have copy-pasted the formula from FM into the message, because this is another typo...
Anyway, what I did last night: I recreated the layout and fields and reimported the data, and now it seems to work (except for a strange error when using the db via a browser, but that's for another thread). Thanks for your effort!