Document has been deleted (when it has not)

Hi there,

I’m working with a time recording application where users input their hours and generate weekly time cards and from there the application computes/creates individual project cards and populates all of these in a hidden view. There are various other views that display the time sheet and related project cards )eg: by person, by project, by date, etc.).

If I open an existing time sheet from a view and close it without choosing Save & Exit, everything is fine - but if I click on Save & Exit (even if i did’nt modify it) - and then try to open the related project cards i get an error : ‘Document has been deleted’ …

Now when I do Shift+F9, I don’t get the error anymore and can open the project cards …

Any ideas as to what might be happening here ??

The formula for Save & Exit is:

@Command([FileSave]);

@Command([FileCloseWindow])

Thanks for any inputs …

Subject: Document has been deleted (when it has not)

any code in your querysave, queryclose form events? sounds like the save is making a change to the doc that affects the view index.