| | |
Record Duplicate ?
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Aug 2009
Posts: 2
Reputation:
Solved Threads: 0
Hi. This should be simple for the experienced. This code pulls the first record twice, but the rest are fine. I can't figure it out! Thanks for looking!
--------
--------
asp Syntax (Toggle Plain Text)
<% set conn=Server.CreateObject("ADODB.Connection") conn.Provider="Microsoft.Jet.OLEDB.4.0" conn.Open(Server.Mappath("products.mdb")) set rs = Server.CreateObject("ADODB.recordset") sql="SELECT Model, Volts_Hz, BTUH, Max_Amps, Max_Temp, '<a href='+Drawing+'>'+Model+'</a>' AS Drawing FROM VAirConditioners ORDER BY BTUH ASC" rs.Open sql, conn %> <table id="header205" align="center"> <tr> <% for each x in rs.Fields response.write("<th>" & x.name & "</th>") %> <td "nowrap="nowrap" class="tablesytle4"><%Response.Write(x.value)%></tr> <tr><%next %> <%do until rs.EOF%> </tr> <% for each x in rs.Fields response.write("<th>" & x.name & "</th>") %> <td "nowrap="nowrap" class="tablesytle4"><%Response.Write(x.value)%> <tr> <%next rs.MoveNext%> </td> </tr> <%loop rs.close conn.close %></table>
Last edited by peter_budo; Aug 14th, 2009 at 1:03 pm. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- how to delete duplicate record in a table by using SQL query (MS SQL)
- Datatable and datarow. (VB.NET)
- Multiple transactions (Java)
- Delete records from a table (MS SQL)
- Duplicate record and child records (MS Access and FileMaker Pro)
- how to delete duplicate record... (C++)
- pls check mainLoop() pseudocode for errors (C)
- Access - Duplicate a number of fields when opening a new form (MS Access and FileMaker Pro)
Other Threads in the ASP Forum
- Previous Thread: quick asp question
- Next Thread: Can I replace a line in a text file or start looping from a line in ASP
| Thread Tools | Search this Thread |
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection connection database databaseconnection dreamweaver excel fso iis msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption single specfic sqlserver sqlserverconnection windows7





