The formula seems to be okay for me. There may be a glitch in Quesry Save or an event which might be making those crashes.
I am not having any with the exact formula as used by you. Infact I copied and pasted into my application and tested. the Notes/Domino version, I am using is also 6.5.1 on windows XP.
Try this way. Out of your 3 @commands, first try with the first two commands. Ie. Under save button, add
O.k, that only happen with the 3 commands together, if I use only @Command([FileSave]);@Command([FileCloseWindow]),
all is fine, I don’t have any code in the Query Save, only this commands, but the diference is when I use the button “Save and Create new”, What i want is that the actual document save and open a new doc in the same window, the diference is when I use