Mitch,
Code after the DO FORM in a PRG is executed unless the Form is modal. Either change the Form to Modal (WindowType property) or rethink placement of the code after the DO FORM (possibly moving it to the Form.QueryUnload event).
>I have an application that is due in today. It worked fine before compiling.
>
>The book probably would help me but because of the time crunch, I won't be able to use it to help this application.
>
>Can you give me a hint on where to call the form from in the procedure?
>
>Thanks again,
>Mitch
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05