Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2003, 01:13 PM
Registered User
 
Join Date: Nov 2003
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default making a db field link on a page

Goodmorning,
I need help in making a db field link to another page. Actually it is more than making a link. Let me explain;
I have a table listed on a page from a database and there is a filed called reports in that table whose values are either true or false. In the same table main reference field is customerid.What I need to do is making this field linked to another page (if it is true) whose is in different table and use CAD# as amain reference field. (there is no customerid in this table.)I need to get the customerid in the first table and CAD # that is on the same row and use the CAD# in the second table to list information belong that CAD#. I am not sure If I am clear! I am trying to use the code below but I am not sure If it is the one I need.

<%
Set Rec = Conn.Execute("Select * From USER Where customerid=555" )

customerid=rec("CAD#" )

rec.Close
Set Rec=Nothing
%>
<%
Set Rec = Conn.Execute("Select * From USER Where CAD#=" & customerid)
%>



Thank you all





Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a link to documents in ADO/ASP gene4455 BOOK: Beginning ASP 3.0 3 November 12th, 2008 01:57 PM
link to anchor in a db-generated page scottiegirl PHP Databases 4 March 11th, 2008 12:19 PM
Making a next and previous link using testing Aaron_j XSLT 0 July 28th, 2005 04:19 AM
making a link bold knalle HTML Code Clinic 5 November 12th, 2004 11:46 AM
Making an email address link jks709 Classic ASP Databases 1 July 28th, 2004 01:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.