This is related to thread #
618884 regarding a long-running SQL, but it seems that some of the performance issue is happening when the form opens. I have set NoDataOnLoad to .T. for all tables in the DE and set the AutoOpenTables to .F. also. I put a Set Step On in the form's Init. The form takes almost 2 minutes to open before hitting the Step command. There is no code in the Load event. Any ideas? Thanks!
Regards, Renoir