To programmically close the form, you can use the keyboard commands and pass in CTRL+F4 which closes the form. Then the ENTER key to save the changes. For example:
KEYBOARD '{CTRL+F4}'
KEYBOARD '{ENTER}'
>I've found 2 ways to open and modify a form programmatically, but I don't know how to save the changes I Made.
>
>Is there any way to do it?
>
>TIA.
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi