Thursday, December 02, 2021

 

Access VBA - 2585 when trying to close a form

I hit the error 2585: "Action can't be carried out while processing a form or report event" when I tried to close A during the opening of Form B.

My problem turned out to be the timing of when I was calling it. I hit the error if I tried to close the second form as part of the "Current" event. But changing it to run as part of the "Load" event solved the problem.


This page is powered by Blogger. Isn't yours?