You may get an error like "cannot perform task while Form or Report is executing", which appears to be an Access bug, most of the time it doesn't happen but sometimes it does, even though the form can be closed with a command button using identical code.