Results 1 to 2 of 2

Thread: ACCESS 2000, SUM QUERY FROM FORM

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    0

    Talking

    I have an access database with a field named "Weight". I have created specific querys. Now I want to bring the sum of the querys into textboxes on a form. Can someone help .

    Thanks in advance!!!

    [Edited by cartrik28 on 11-15-2000 at 03:06 PM]

  2. #2
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,539
    if you know ado and sql
    your sql statement would look like this
    Code:
    SQLstatement = "SELECT Sum(weight)as TotalSum FROM Mytable"
    RS.open sqlstatement, conn 'where conn is your connection and rs is your recordset
    txtSum.text = RS!TotalSum
    RS.close

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