Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid cell calculation

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a grid. I'd like to make some calculations on several cells and put the results
to the other cell. So, how to do this
Thanks
 
support you want to calculate A + B,
set the controlsource of result column to "A+B" and boundcolumn is true
 
suppose you want to calculate A + B,
set the controlsource of result column to "A+B" and boundcolumn is true
 
suppose you have 3 textfields: TF1, TF2, TF3 whereby TF3 contains the sum of TF1 and TF2

assign variables to them TF1V, TF2V, TF3V

in LostFocus of 1 and/or 2 you put a code like
TF3V=TF1V+TF2V
thisform.refresh

can ofcourse be used for any kind of calculation and/or number of textfields in your grid

wilfredo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top