Results 1 to 8 of 8
  1. #1

    Default guyz pa tabang ko sakong query for VB6


    PAYMENT TABLE
    -----------------------------------------------
    | rent_id | date_paid | amount |
    -----------------------------------------------
    | 1 | 9/9/1990 | 1500 |
    -----------------------------------------------
    | 2 | 9/9/1990 | 1000 |
    -----------------------------------------------
    | 3 | 9/9/1989 | 800 |
    -----------------------------------------------
    | 4 | 9/9/1995 | 2000 |
    -----------------------------------------------


    patabang unta ko kanang unsaon pag sum sa amount every month ug year

    please tabangi ko... na extend lang jud akong defend karon lunes tungod ani... mao nlng jud na kulang sakong data report

  2. #2

    Default Re: guyz pa tabang ko sakong query for VB6

    Quote Originally Posted by koujie View Post
    unson akong i code para ma count niya ang whole sale nimo for month and year??


    please help istoryans kani nlng ang prob para sakong data report
    please post details about your project such as fieldnames etc.

  3. #3

    Default Re: guyz pa tabang ko sakong query for VB6

    kani mang gawas ang mag programmer dri sa istorya... cge go... hehehe naka limut naman ko ani program2x...

  4. #4

    Default Re: guyz pa tabang ko sakong query for VB6

    e detalye pud TS...like sa table structure(columns) nimo kung mo focus ta sa DB

  5. #5

    Default Re: guyz pa tabang ko sakong query for VB6

    Brad, mag himo kag combo box para sa month and year then imo na i query sa sql like this,

    Code:
    SELECT sum(sales) FROM table_sales WHERE month = '" & cboMonth.text & "' AND year = '" & cboYear.text &"'
    Nya pwede na nimo ipa display sa either datagrid or listview ang output.

  6. #6

    Default Re: guyz pa tabang ko sakong query for VB6

    please help guyz na edit na nako

  7. #7

    Default Re: guyz pa tabang ko sakong query for VB6

    mao na na ang gipost ni @chrisvil

  8. #8

    Default Re: guyz pa tabang ko sakong query for VB6

    Ug ari ka sa Data Report sa VB6. Right-Click nimo ang Report Footer section and choose the Insert Controls -> Functions. Pili-a ang SUM function.

    Kani naa sa ibabao mahimo na nimo kon naa kay gi configure sa Data Environment. Then set nimo ang properties sa SUM function imong gi add kay naka unbound na sya. Set the following,

    Datamember -> which is mao ni iya table (Sales_table)

    DataField -> which is mao ni iya Field sa table (amount).

    Then you are good to go...

  9.    Advertisement

Similar Threads

 
  1. mga expert pa tabang ko be!!!
    By muchacha00 in forum Networking & Internet
    Replies: 9
    Last Post: 12-26-2011, 09:00 AM
  2. pa tabang ko pili PC case. :)
    By smoothriff in forum Computer Hardware
    Replies: 12
    Last Post: 12-08-2011, 01:56 AM
  3. pa tabang ko
    By sanly23 in forum Computer Hardware
    Replies: 15
    Last Post: 08-05-2011, 07:15 PM
  4. bai pa tabang ko unsaon nako ni eboot
    By waterboy0911 in forum Gizmos & Gadgets (Old)
    Replies: 8
    Last Post: 07-29-2008, 03:51 PM
  5. Replies: 1
    Last Post: 10-30-2007, 12:29 AM

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