>The form.QueryUnload event executes as soon as you attempt to close the form; before the valid event of any control on the form and before the form closing. So if you insert thisform.lIsExiting = .T. in the form.QueryUnload it would work.
Not in the test I did earlier on tonight. I put a messagebox on the first line in there and the valid kicked in first.