I have a form with a few subforms and have not been able to find a macro that will save all the data entered or changed in the forms like what the Save Record button/icon does.
Does code exist that does the same thing as the Save Record button/icon that can be executed from a button?
Robert,
I appreciate all your help, but referring me a 500+ page document doesn’t help.
I have quite a bit of documentation on LibreOffice and refer to it often, and am constantly learning - learning LibreBase is a long haul project unlike FoxPro, where I have years of experience.
Could you kindly point me to the sections and/or pages or examples in this massive document that are applicable.
Once again, thanks,
Erik
To your auestion: Yes.
.
For you problem:
Wonderer,
Got it. I used the predefined Save Record action as described, but the button only becomes active when I make a change to the parent form. My form has two subforms. When I make a change to either of the subforms, the button remains gray and not functional.
How do I make the button visible at all times (or once a change has been made to the parent form or a subform?
Thanks.
The button show if there is anything to save. The button is positioned in main form. It will save data of main form, not of sub form.
You could position a button in every subform. Navigation bar will do it for you.
If you are looking for code to save a form: Page 406 in Base Guide.
So you could create a button, which could save a form and a subform. But you have to prove if there is anything inside a row before you try to save it. A mainform could be saved without problems. But a new row in mainform doesn’t offer any content in subform. So saving both forms will lead to an error in you macro code.