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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trigger a procedure in a grid

Status
Not open for further replies.

IngvarG

Programmer
Nov 11, 2001
3
0
0
CA
Should be simple, but I have a grid I create programatically. I want to put in a procedure to calculate Field4 (field2+field3) when Field3 loses focus when the user tabs over to Field4 which is read only.

thisform.grid1.column4.text1.LostFocus.procedure.recalc

doesn't work.

Thank you.

ingvarG
 
HI

In your programatic code... the easiest way...

ThisForm.Grid1.Column4.ControlSource = (myField2+myField3)

HOwever, if you have a separate field in your table, you have to update the value... hmmmm.. your table having such calculated fields is against data normalisation.

Hope I have helped you :) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top