Results 1 to 3 of 3

Thread: Total Entire LinePrice Column

  1. #1
    Kenny Guest

    Total Entire LinePrice Column

    Here is my code. I tried looking though the examples. Could not get it to work. What is the exact line of code needed to display a total of the LinePrice column.

    <% response.buffer=true %>
    <!--ASP-db-->
    <HTML>
    <HEAD><title>Test Page</title></HEAD>

    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34

    MyDb.dbUnit = 123
    MyDb.dbDSN = &#34;SQL&#34;
    MyDb.dbStartup = &#34;filter&#34;
    MydB.dbSQL=&#34;SELECT XrefOrderNum,LinePrice FROM dbo.Promis_Data&#34;
    MyDb.dbColor = &#34;4,auto,white&#34;
    MyDb.dbGridtabletag = &#34;border=1 cellspacing=2 cellpadding=1&#34;
    MyDb.dbMode = &#34;Grid&#34;
    MyDb.dbOptions = &#34;HeaderFontTag=Size=3,CellFontTag=Face=Aria l Size=2&#34;
    MyDb.dbGridInc= &#34;10&#34;
    MyDb.dbImageDir= &#34;images/&#34;
    Mydb.dbNavigationItem= &#34;top, bottom, next, prev, filter, download&#34;
    Mydb.dbNavigationIcon= &#34;std&#34;
    MyDb.ASPdb
    RECS = MyDb.dbRecordCount
    %>

    <% if RECS < 1 then %>
    <BR><FONT SIZE=5 COLOR=BLACK><B>
    Sorry, no records were found!<BR>
    Please click on the &#34;Back&#34; button and try again.<BR></B></FONT>
    <% end if %>

    </BODY>
    </HTML>

  2. #2
    Donna Guest

    Total Entire LinePrice Column (reply)

    I do column totals all the time. there is a good exmaple of this at:
    http://www.mmstools.com/EP/V2_agg1.asp
    Hope that helps you :-)
    Donna


    ------------
    Kenny at 4/11/01 9:58:43 PM

    Here is my code. I tried looking though the examples. Could not get it to work. What is the exact line of code needed to display a total of the LinePrice column.

    <% response.buffer=true %>
    <!--ASP-db-->
    <HTML>
    <HEAD><title>Test Page</title></HEAD>

    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34

    MyDb.dbUnit = 123
    MyDb.dbDSN = &#34;SQL&#34;
    MyDb.dbStartup = &#34;filter&#34;
    MydB.dbSQL=&#34;SELECT XrefOrderNum,LinePrice FROM dbo.Promis_Data&#34;
    MyDb.dbColor = &#34;4,auto,white&#34;
    MyDb.dbGridtabletag = &#34;border=1 cellspacing=2 cellpadding=1&#34;
    MyDb.dbMode = &#34;Grid&#34;
    MyDb.dbOptions = &#34;HeaderFontTag=Size=3,CellFontTag=Face=Aria l Size=2&#34;
    MyDb.dbGridInc= &#34;10&#34;
    MyDb.dbImageDir= &#34;images/&#34;
    Mydb.dbNavigationItem= &#34;top, bottom, next, prev, filter, download&#34;
    Mydb.dbNavigationIcon= &#34;std&#34;
    MyDb.ASPdb
    RECS = MyDb.dbRecordCount
    %>

    <% if RECS < 1 then %>
    <BR><FONT SIZE=5 COLOR=BLACK><B>
    Sorry, no records were found!<BR>
    Please click on the &#34;Back&#34; button and try again.<BR></B></FONT>
    <% end if %>

    </BODY>
    </HTML>

  3. #3
    kjh Guest

    Total Entire LinePrice Column (reply)

    Hey Kenny,
    I have a radical idea. I know it goes against the dot com concept, but you know-nothings are going down the tubes anyway.


    LEARN YOUR JOB BEFORE YOU CHARGE SOMEBODY TO DO IT!!

    ------------
    Kenny at 4/11/01 9:58:43 PM

    Here is my code. I tried looking though the examples. Could not get it to work. What is the exact line of code needed to display a total of the LinePrice column.

    <% response.buffer=true %>
    <!--ASP-db-->
    <HTML>
    <HEAD><title>Test Page</title></HEAD>

    <%
    Set MyDb = Server.CreateObject(&#34;Asp.DB&#34

    MyDb.dbUnit = 123
    MyDb.dbDSN = &#34;SQL&#34;
    MyDb.dbStartup = &#34;filter&#34;
    MydB.dbSQL=&#34;SELECT XrefOrderNum,LinePrice FROM dbo.Promis_Data&#34;
    MyDb.dbColor = &#34;4,auto,white&#34;
    MyDb.dbGridtabletag = &#34;border=1 cellspacing=2 cellpadding=1&#34;
    MyDb.dbMode = &#34;Grid&#34;
    MyDb.dbOptions = &#34;HeaderFontTag=Size=3,CellFontTag=Face=Aria l Size=2&#34;
    MyDb.dbGridInc= &#34;10&#34;
    MyDb.dbImageDir= &#34;images/&#34;
    Mydb.dbNavigationItem= &#34;top, bottom, next, prev, filter, download&#34;
    Mydb.dbNavigationIcon= &#34;std&#34;
    MyDb.ASPdb
    RECS = MyDb.dbRecordCount
    %>

    <% if RECS < 1 then %>
    <BR><FONT SIZE=5 COLOR=BLACK><B>
    Sorry, no records were found!<BR>
    Please click on the &#34;Back&#34; button and try again.<BR></B></FONT>
    <% end if %>

    </BODY>
    </HTML>

Posting Permissions

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