I am pointing to a record in table1 (pre.dbf) and displaying data on the top of page5
I have grid1 on page5 of pageframe 1 on my form
grid1.recordsource is set to a table (thisone.dbf)
grid1.recordsourcetype is set to 0 - table
grid2.readonly=.t.
I put a command button above the grid with the following doed in the click event
pre.age determines various amounts to pay insurance premiums
When I click the commandbutton the grid goes blank and will not refresh.
Will the grid do what im asking or is there a better approach?
I have grid1 on page5 of pageframe 1 on my form
grid1.recordsource is set to a table (thisone.dbf)
grid1.recordsourcetype is set to 0 - table
grid2.readonly=.t.
I put a command button above the grid with the following doed in the click event
Code:
SELECT begage,endage,years,annual,semi,qtr,monthly,mdraft,single, ;
ROUND(single*pre.total_b,2) as single_amt, ;
ROUND(annual*pre.total_b,2) as annual_amt, ;
ROUND(semi*pre.total_b,2) as semi_amt, ;
round(qtr*pre.total_b,2) as qtr_amt, ;
ROUND(monthly*pre.total_b,2) as mon_amt, ;
ROUND(mdraft*pre.total_b,2) as mfraft_amt ;
from rates ;
WHERE BETWEEN(pre.age,begage,endage) ;
ORDER BY years ;
INTO TABLE thisone.dbf
this.Parent.grid1.refresh
When I click the commandbutton the grid goes blank and will not refresh.
Will the grid do what im asking or is there a better approach?