Hello friends,
I have a grid on Form (actually on a Form > Pageframe > Page) which does not refresh when expected.
The grid's RowSource is an SQL select from the source table TEMPDATA. The code to refresh the source table for the grid is:
The BROWSE line was placed there as a development check-view to see if the table has indeed been filtered, and this works as expected to this point. I.e. the source table is properly filtered. But after the Refresh is issued the grid remains unchanged. It also will not refresh if the command is issued directly to:
What am I missing here?
TIA,
BillvV
I have a grid on Form (actually on a Form > Pageframe > Page) which does not refresh when expected.
The grid's RowSource is an SQL select from the source table TEMPDATA. The code to refresh the source table for the grid is:
Code:
DO FORM changefilter to cNewfilter
*Returns a valid filter string
*Zap the old records in the source table. (Allows the data
*binding to remain undisturbed.)
SELECT tempdata
ZAP
*Make up & Run new Append command with new filter
cCmdStr = "APPEND from cardata for " + cNewFilter
* Append the new filtered records
&cCmdStr
*BROWSE && A development check-view (see note below)
thisform.Refresh()
The BROWSE line was placed there as a development check-view to see if the table has indeed been filtered, and this works as expected to this point. I.e. the source table is properly filtered. But after the Refresh is issued the grid remains unchanged. It also will not refresh if the command is issued directly to:
Code:
Thisform.Pageframe1.Page1.Grid1.Refresh().
What am I missing here?
TIA,
BillvV