True... it's always good to clarify things because these threads are read by people with differing levels of capability. I will bear that in mind next timeI know that you know but we have to be careful. Others see that kind of thing and wonder why it doesn't work for them.
It is also good opportunity to provide explanation for the casual reader to understand why we must set the object first. I know I used the code more than once while scratching my head as to why something so similar to so many other code samples didn't work for CurrentDb in a single line.