AndrewMozley
Programmer
There is a form which is used for maintaining (Creating and editing) records in a table. There are several bound controls on the form. When the form moves to a new record the bound controls show the values from the new record.
When the form moves to a new record, there is an instruction Thisform.refresh(). This works fine if the controls are placed directly on the form.
But if there are two pages on the form (because there are a lot of fields in the table), only the controls on the currently visible page are refreshed - and if you click to view the other page, you see the values from the previous record.
To get round this, after moving to a new record, I am issuing these instructions.
Is this the correct approach, or are there better ways to do this?
Thanks. Andrew
When the form moves to a new record, there is an instruction Thisform.refresh(). This works fine if the controls are placed directly on the form.
But if there are two pages on the form (because there are a lot of fields in the table), only the controls on the currently visible page are refreshed - and if you click to view the other page, you see the values from the previous record.
To get round this, after moving to a new record, I am issuing these instructions.
Code:
Thisform.refresh()
Thisform.<PageFrame>.Page1.refresh()
Thisform.<PageFrame>.Page2.refresh()
Is this the correct approach, or are there better ways to do this?
Thanks. Andrew