Results 1 to 3 of 3

Thread: Grand total in Textbox

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2000
    Location
    karachi
    Posts
    90

    Post

    I have field named amount in access tabel i want to grand
    total from amount field in text box it will update too
    when I enter amount in amount field
    plz reply me soon
    Thank You

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827

    Post

    Grand total of the "Amount" field:

    data1.recordset.movefirst
    Do until EOF
    total = total + data1.recordset.fields("Amount")
    data1.recordset.movenext
    Loop

    To update your textbox every time, put it in the text1_change event. I think that's what the event's called. Haven't used VB for a while.

    Hope that's what you want

  3. #3
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    SQL solution:

    select sum(amount) from table

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width