Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1

    Default i need ur help in query sa vb


    db
    -------------------------
    custno|customer name| totalpayable
    --------------------
    1 |REYNITA | 20
    2 |RHETENDO | 30
    3 |SANGANNO | 10
    4 |STRADnus | 10
    5 |metallica | 20

    __________________________________
    total: 90 ------unsa on pag kuha sa total sa query sa vb
    i tried ms access nga way pero mo drekso cya total..what i want taha ba

    SELECT CUSTNO,COSTUMERNAME,SUM(DB.TOTALPAYABLE) AS TOTAL FROM DB...I TRIED ANI SA ACCESS MO DREKSO RA MAN GUD SA TOTAL NGA 90 MA WAG TANG NA 2 LIMA KA NUMBER ..
    AKO Taha gusto taha ko pa bilin na nga numeroha?unsa on guys nag labad na ako ulo ani guys

    --------------------------------------------------------------------

    20
    30
    10
    10
    20
    total : 90 - what i want is mag pa bilin taha na lima ka number together with total nga value

  2. #2
    asa nimo e display ang lima ka numbers??

  3. #3
    SELECT CUSTNO,COSTUMERNAME,SUM(DB.TOTALPAYABLE) AS TOTAL FROM DB
    total njud kay imo naman gi.SUM..
    murag dili na makuha sa usa lang ka query then diritso output nga ing.ana daun ang resulta.
    I.output sa ang mga records, then diha na ka makakuha sa total base sa output . .

  4. #4
    Quote Originally Posted by rhex_tendo View Post
    total njud kay imo naman gi.SUM..
    murag dili na makuha sa usa lang ka query then diritso output nga ing.ana daun ang resulta.
    I.output sa ang mga records, then diha na ka makakuha sa total base sa output . .
    the output should be like this

    ako na g try ug sum(totalpayable) as amountpaid,sum(totalbalance) as balance .....pero mo drekso man sa total....
    Last edited by skeptic_rob; 12-21-2010 at 05:14 PM.

  5. #5
    Quote Originally Posted by skeptic_rob View Post


    the output should be like this

    ako na g try ug sum(totalpayable) as amountpaid,sum(totalbalance) as balance .....pero mo drekso man sa total....
    gamita na lang to ang resulting table nimo bro.....then mag loop the until EOF sa imong resulting table...then naa ka running total.....display data in every record nga makit.an nimo sa imong resulting table....

  6. #6
    bro, merry christmas

    rs.open "SELECT CUSTNO,COSTUMERNAME,SUM(DB.TOTALPAYABLE) AS TOTAL FROM DB..",dbcon

    if not rs.eof then
    rs.movefirst
    tmpvarTotal= rs!TOTAL
    end if

    while not rs.eof
    'Display here the detail part of your report

    rs.movenext
    wend

    'Display total here
    debug.print "Total: " & tmpvarTotal

    I hope this solves your problem

  7. #7
    sql = "SELECT * FROM db"
    Set rs = Connection.Execute(sql)

    Do Until rs.EOF()
    'display your report here

    totalBalance = totalBalance + rs.totalpayable
    Loop

    'display total here

    set rs = nothing
    set connection = nothing

  8. #8
    Unsa kaha sayop ato sa
    Last edited by skeptic_rob; 12-28-2010 at 09:02 PM.

  9. #9
    THANKS MGA BRO...SIS DINHi na mga expert..
    Last edited by skeptic_rob; 12-23-2010 at 06:31 PM.

  10. #10


    guys wats wrong with this mag cge balik2x

  11.    Advertisement

Page 1 of 2 12 LastLast

Similar Threads

 
  1. going to HOLY LANd this march need ur help!
    By koto in forum Destinations
    Replies: 5
    Last Post: 01-06-2019, 10:46 PM
  2. Replies: 0
    Last Post: 02-06-2012, 02:49 PM
  3. Replies: 10
    Last Post: 12-13-2009, 08:33 PM
  4. i need some help in using DREAMweaver please.
    By staT|c-X in forum Software & Games (Old)
    Replies: 0
    Last Post: 01-27-2007, 05:54 PM
  5. guys i need ur help
    By jekjek2134 in forum Websites & Multimedia
    Replies: 0
    Last Post: 06-13-2006, 12:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top