Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Gm3512 #1
sql query returned a to table in a field
i have a table that returns information from a record set. This works fine. I
have one field on the table that needs to return a query from another record
set/query. I am not sure how to do this. Help would be great please.
This is a small part of the table.
<tr class="frm_field">
<td><div align="center">
<input name="update_leaseinfo" type="checkbox" id="update_leaseinfo"
value="<%=(rs_termdata.Fields.Item("termID").Value )%>">
</div></td>
<td><%=(rs_termdata.Fields.Item("termName").Value) %> </td>
<td><%=(rs_termdata.Fields.Item("storeNumeric").Va lue)%> </td>
<td><%=(rs_termdata.Fields.Item("termID").Value)%> </td>
<td><%=(rs_termdata.Fields.Item("status").Value)%> </td>
<td><%=(rs_termdata.Fields.Item("termType").Value) %> </td>
This is the query that I want to have in the line that contains termType.
<%
Dim rs_termDesc
Dim rs_termDesc_numRows
Set rs_termDesc = Server.CreateObject("ADODB.Recordset")
rs_termDesc.ActiveConnection = MM_cn_STRING
rs_termDesc.Source = "SELECT TerminalData.termType,
TerminalTypeDesc.description, TerminalTypeDesc.manufacturer,
TerminalTypeDesc.modelNumber FROM TerminalData INNER JOIN TerminalTypeDesc ON
TerminalData.termType = TerminalTypeDesc.code"
rs_termDesc.CursorType = 0
rs_termDesc.CursorLocation = 2
rs_termDesc.LockType = 1
rs_termDesc.Open()
rs_termDesc_numRows = 0
%>
TIA
Greg
Gm3512 Guest
-
Limit Data returned to table
Hi I have a number of large fields of data being returned and would like to limit the amount of each one that is put to my table for viewing.... -
adding a hyperlink to a field in a table created from a d/b query (Access)
I've done this using Frontpage; and I know I've done it in the past using just ASP. I'm trying to stay away from FP on this site, so.... Can... -
#25544 [Bgs->Opn]: Only 255 characters returned from varchar field
ID: 25544 Updated by: abies@php.net Reported By: snick at getart dot ru -Status: Bogus +Status: Open... -
#25544 [Opn->Bgs]: Only 255 characters returned from varchar field
ID: 25544 Updated by: iliaa@php.net Reported By: snick at getart dot ru -Status: Open +Status: Bogus... -
#25544 [NEW]: Only 255 characters returned from varchar field
From: snick at getart dot ru Operating system: Windows 2003 Server PHP version: 4.3.2 PHP Bug Type: MSSQL related Bug...



Reply With Quote

