I don't know what was wrong, but i deleted that copy of the DB that I made. Then, pasted a new copy, linked the BE to the FE and now it seems to work fine.
Your code seems interesting though. I will try it and see what it does.
Thank you for your help,
B