Enrico, all, solved!! I use database fields to make the title of the main window, like a->field1+a->field2, perhaps it has spaces in the field, not finding the window title, after use a constant as name of the main window, it worked. I think that all solutions posted work, the error was in the...