View Single Post
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Substraction code in MSFlex Grid

 
0
  #7
Jan 9th, 2009
Hi,

Yes, Little bit tweaking of my code, will do the job:

  1. Dim i As Integer
  2. Dim TAmt As Currency
  3. TAmt = 0
  4. For i = 1 To Grd.Rows-1
  5. TAmt = TAmt + Val(Grd.TextMatrix(i, 8))
  6. Next
  7. TAmt = Val(txtBudget.Text) - TAmt
  8. txtBalance.Text = Format(Tamt,"0.00")

You can Call this In LostFocus Of txtBudget..

Regards
Veena
Last edited by QVeen72; Jan 9th, 2009 at 2:29 am.
Reply With Quote