Topic: Don't close form after clicking Save button.

Hello,


How do I stop a form from closing after I click the 'Save' button?


Eddie

Re: Don't close form after clicking Save button.

Hello heribertom6466

You don't want a form be closed after clicking OK button ?

Have you unchecked this instruction : Close the current form after saving ?
It stands at the bottom of dialog window Action for the button.

The effect inverse Is obtained by checking it

JB

Re: Don't close form after clicking Save button.

Hello JB,


I made a database with just one centralized form.
Meaning this is my main form. Every time I click on the "Save" button the Main form closes.
I have to go to my icon on my desktop and launch the database all over again.

I would like to keep my main form up and running till I close it.

Thank you,
Eddie

Re: Don't close form after clicking Save button.

Hello hibertom6466

Strange that uncheked box does'nt work.
In the other hand, you could try this :
  With button Save, you can use event OnClick, something like :

MyForm_Button13_OnClick (Sender: string);
begin
     MyMainform.Show;      // MyMainForm being the form you want always use
end;

This is called pass from behind.

JB

Re: Don't close form after clicking Save button.

JB,

I noticed you mentioned, "Strange that unchecked box doesn't work."
If you mentioned this then, I knew I was missing something.
Sure enough... I did not uncheck the box.

Thanks JB I got it to work.

Eddie

Re: Don't close form after clicking Save button.

Hello hieribertom6466

Please look at picture in attachment
Action SAVE RECORD

JB

Post's attachments

Attachment icon Example.jpg 51.15 kb, 243 downloads since 2015-09-14