>>On a Memory Form, I have code in Pre Update End. How can I close the window at that point in code based on a condition.
I'm not sure what you mean by "close the window". This is a web browser - it only has one window. Everything you see in that window is a page - ie html. So you don't "close" anything, you merely decide what to send to the browser.
You can choose to send nothing of course, but that may not be what you have in mind.
Cheers
Bruce