Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Placement

    Hi I am using the following page to display my data when it is entered
    into an access database. It is working great the only problem is now
    that I have the <table> in there it adds the new record in the middle of
    the table not on the end.(only in display, It is at the end of the
    access database). Any ideals what I am doing wrong?
    <html>
    <head>
    <title>Customer Calls</title>
    </head>
    <body bgcolor="white" text="black">
    <table background="images/frbk014.jpeg" border="1" style="border-style:
    solid"
    bordercolor="#808080"><th>Date</th><th>Time</th><th>Operator</th><th>Fir
    st Name</th><th>Middle Initial</th><th>Last
    Name</th><th>Account</th><th>SSN</th><th>Deposit From</th><th>Amount
    Deposit</th><th>Phone</th><th>Address</th><th>Reason</th>
    <%
    Dim adoCon
    Dim rsaddccalls
    Dim strSQL

    Set adoCon = Server.CreateObject("ADODB.Connection")
    adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&
    Server.MapPath("ccalls.mdb")

    Set rsccalls = Server.CreateObject("ADODB.Recordset")

    strSQL = "SELECT calltable.date, calltable.time, calltable.operator,
    calltable.fname, calltable.initial, calltable.lname, calltable.account,
    calltable.ssn, calltable.direct, calltable.deposit, calltable.phone,
    calltable.address, calltable.reason FROM calltable;"

    rsccalls.Open strSQL, adoCon

    Do While not rsccalls.EOF

    Response.Write "<tr>"
    Response.Write "<td>" & rsccalls("date") & "</td>"
    Response.Write "<td>" & rsccalls("time") & "</td>"
    Response.Write "<td>" & rsccalls("operator")& "</td>"
    Response.Write "<td>" & rsccalls("fname") & "</td>"
    Response.Write "<td>" & rsccalls("initial") & "</td>"
    Response.Write "<td>" & rsccalls("lname") & "</td>"
    Response.Write "<td>" & rsccalls("account") & "</td>"
    Response.Write "<td>" & rsccalls("ssn") & "</td>"
    Response.Write "<td>" & rsccalls("direct") & "</td>"
    Response.Write "<td>" & rsccalls("deposit") & "</td>"
    Response.Write "<td>" & rsccalls("phone") & "</td>"
    Response.Write "<td>" & rsccalls("address") & "</td>"
    Response.Write "<td>" & rsccalls("reason") & "</td>"
    Response.Write "</tr>"
    rsccalls.MoveNext

    Loop

    rsccalls.Close
    Set rsccalls = Nothing
    Set adoCon = Nothing
    %>
    </table>
    </body>
    </html>

    Thanks Tim

    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Tim Midgett Guest

  2. Similar Questions and Discussions

    1. my.cnf placement
      I am told that creating a my.cnf file, with the client's user id and password, and placing it it the user's home directory will provide some...
    2. Forum placement
      Hi all, I'm new to this web designing and wish to add a forum into my website, but I'd like to be in context with the site and not one that I...
    3. Placement of Controls
      I have placed 3 web user controls on a page, a header, a navigation and a products control. Each control is contained in a row and cell in a table....
    4. MIAW Placement
      I am trying to place a MIAW on the stage by calculating the center of the stage and then positioning the MIAW. This way it will be in the same place...
    5. Popup placement
      Hi all, how can place a popup window relative to the assigned button instead of relative to the documents body? I'm using:...
  3. #2

    Default Re: Placement

    I don't understand what you mean by middle and end of the table. This looks
    like a table with only two rows... however you need to troubleshoot your
    HTML. Your header row (the row with <th> tags) doesn't have a surrounding
    <tr></tr>!





    "Tim Midgett" <tmidgett@unitedfidelity.com> wrote in message
    news:ejWx5NiSDHA.1868@TK2MSFTNGP11.phx.gbl...
    > Hi I am using the following page to display my data when it is entered
    > into an access database. It is working great the only problem is now
    > that I have the <table> in there it adds the new record in the middle of
    > the table not on the end.(only in display, It is at the end of the
    > access database). Any ideals what I am doing wrong?
    > <html>
    > <head>
    > <title>Customer Calls</title>
    > </head>
    > <body bgcolor="white" text="black">
    > <table background="images/frbk014.jpeg" border="1" style="border-style:
    > solid"
    > bordercolor="#808080"><th>Date</th><th>Time</th><th>Operator</th><th>Fir
    > st Name</th><th>Middle Initial</th><th>Last
    > Name</th><th>Account</th><th>SSN</th><th>Deposit From</th><th>Amount
    > Deposit</th><th>Phone</th><th>Address</th><th>Reason</th>
    > <%
    > Dim adoCon
    > Dim rsaddccalls
    > Dim strSQL
    >
    > Set adoCon = Server.CreateObject("ADODB.Connection")
    > adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&
    > Server.MapPath("ccalls.mdb")
    >
    > Set rsccalls = Server.CreateObject("ADODB.Recordset")
    >
    > strSQL = "SELECT calltable.date, calltable.time, calltable.operator,
    > calltable.fname, calltable.initial, calltable.lname, calltable.account,
    > calltable.ssn, calltable.direct, calltable.deposit, calltable.phone,
    > calltable.address, calltable.reason FROM calltable;"
    >
    > rsccalls.Open strSQL, adoCon
    >
    > Do While not rsccalls.EOF
    >
    > Response.Write "<tr>"
    > Response.Write "<td>" & rsccalls("date") & "</td>"
    > Response.Write "<td>" & rsccalls("time") & "</td>"
    > Response.Write "<td>" & rsccalls("operator")& "</td>"
    > Response.Write "<td>" & rsccalls("fname") & "</td>"
    > Response.Write "<td>" & rsccalls("initial") & "</td>"
    > Response.Write "<td>" & rsccalls("lname") & "</td>"
    > Response.Write "<td>" & rsccalls("account") & "</td>"
    > Response.Write "<td>" & rsccalls("ssn") & "</td>"
    > Response.Write "<td>" & rsccalls("direct") & "</td>"
    > Response.Write "<td>" & rsccalls("deposit") & "</td>"
    > Response.Write "<td>" & rsccalls("phone") & "</td>"
    > Response.Write "<td>" & rsccalls("address") & "</td>"
    > Response.Write "<td>" & rsccalls("reason") & "</td>"
    > Response.Write "</tr>"
    > rsccalls.MoveNext
    >
    > Loop
    >
    > rsccalls.Close
    > Set rsccalls = Nothing
    > Set adoCon = Nothing
    > %>
    > </table>
    > </body>
    > </html>
    >
    > Thanks Tim
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Aaron Bertrand - MVP Guest

  4. #3

    Default Re: Placement

    If you want your records to be in a specific order then you will need to add
    an "order by" clause to the SQL statement.

    --
    Mark Schupp
    --
    Head of Development
    Integrity eLearning
    Online Learning Solutions Provider
    [email]mschupp@ielearning.com[/email]
    [url]http://www.ielearning.com[/url]
    714.637.9480 x17


    "Tim Midgett" <tmidgett@unitedfidelity.com> wrote in message
    news:ejWx5NiSDHA.1868@TK2MSFTNGP11.phx.gbl...
    > Hi I am using the following page to display my data when it is entered
    > into an access database. It is working great the only problem is now
    > that I have the <table> in there it adds the new record in the middle of
    > the table not on the end.(only in display, It is at the end of the
    > access database). Any ideals what I am doing wrong?
    > <html>
    > <head>
    > <title>Customer Calls</title>
    > </head>
    > <body bgcolor="white" text="black">
    > <table background="images/frbk014.jpeg" border="1" style="border-style:
    > solid"
    > bordercolor="#808080"><th>Date</th><th>Time</th><th>Operator</th><th>Fir
    > st Name</th><th>Middle Initial</th><th>Last
    > Name</th><th>Account</th><th>SSN</th><th>Deposit From</th><th>Amount
    > Deposit</th><th>Phone</th><th>Address</th><th>Reason</th>
    > <%
    > Dim adoCon
    > Dim rsaddccalls
    > Dim strSQL
    >
    > Set adoCon = Server.CreateObject("ADODB.Connection")
    > adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="&
    > Server.MapPath("ccalls.mdb")
    >
    > Set rsccalls = Server.CreateObject("ADODB.Recordset")
    >
    > strSQL = "SELECT calltable.date, calltable.time, calltable.operator,
    > calltable.fname, calltable.initial, calltable.lname, calltable.account,
    > calltable.ssn, calltable.direct, calltable.deposit, calltable.phone,
    > calltable.address, calltable.reason FROM calltable;"
    >
    > rsccalls.Open strSQL, adoCon
    >
    > Do While not rsccalls.EOF
    >
    > Response.Write "<tr>"
    > Response.Write "<td>" & rsccalls("date") & "</td>"
    > Response.Write "<td>" & rsccalls("time") & "</td>"
    > Response.Write "<td>" & rsccalls("operator")& "</td>"
    > Response.Write "<td>" & rsccalls("fname") & "</td>"
    > Response.Write "<td>" & rsccalls("initial") & "</td>"
    > Response.Write "<td>" & rsccalls("lname") & "</td>"
    > Response.Write "<td>" & rsccalls("account") & "</td>"
    > Response.Write "<td>" & rsccalls("ssn") & "</td>"
    > Response.Write "<td>" & rsccalls("direct") & "</td>"
    > Response.Write "<td>" & rsccalls("deposit") & "</td>"
    > Response.Write "<td>" & rsccalls("phone") & "</td>"
    > Response.Write "<td>" & rsccalls("address") & "</td>"
    > Response.Write "<td>" & rsccalls("reason") & "</td>"
    > Response.Write "</tr>"
    > rsccalls.MoveNext
    >
    > Loop
    >
    > rsccalls.Close
    > Set rsccalls = Nothing
    > Set adoCon = Nothing
    > %>
    > </table>
    > </body>
    > </html>
    >
    > Thanks Tim
    >
    > *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    > Don't just participate in USENET...get rewarded for it!

    Mark Schupp Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139