Hi,
Your code works without a problem in my Current Channel version 2407 build 17830.20166, 64 bit.
- What is the Office version and build (see File - Account) where you see the crash?
- Did you try the code in a new database (as suggested by Viorel) and on a different machine?
Servus
Karl
Access News, Forever, DevCon
Access-Entwickler-Konferenz AEK - 19./20.10. Nürnberg