Yes it is tricky, found out that if the code isn't perfect it closes the application.So when I added your code, the subform names was wrong.Then I made a change so there was a space after the comma (values.join(", ");), but didn't use quotation marks around it initially.Eventually I got it correct a...