Update records on a subform

Hello,

I have a form with a subform showing some records.

In a menu item I do some changes on the record data, and after doing this I would like to update (refresh) the records in order to see the changed data.

Which function should I use in the menu item? I tried CurrForm.UPDATE, CurrForm,UPDATECONTROLS, but it is not good.

I tried to refer to the subform using this: CurrForm.NameOfSubformControl.FORM.LocalFunctionToExecute;

LocalFunctionToExecute was UPDATE, but I did’t know what to write in the place of NameOfSubformControl. I tried Control100000006, which is the Name property of the subform, but it is not good.

I would like to create a function like View/Refresh.

Thanks a lot, Frida

Did you try CurrForm.UPDATE(FALSE);?

Try changing the Name property of your subform to a name that can easily be referred to in code.

Sometimes instead of calling UPDATE directly, you will need to make a function in the form that calls CurrForm.UPDATE for you. Then call that function instead.