Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Links from Access onto table

Status
Not open for further replies.

GROOVYHEN

Programmer
Apr 19, 2004
12
GB
If I want to display links on an ASP page table, and have them displayed as links (ie. underlined, etc.), then what do I do? I assume I class them in the hyperlink classification of the access fields, but is that enough? Is there something else I need to do, on the asp page table or elsewhere?
 
ummm...what?

I'm not getting what you mean. If you have links to a database table? or a HTML table?

where is the database coming in here? are these links getting data after click events? or are they loaded with data to be used on click events?



___________________________________________________________________

The answer to your ??'s may be closer then you think.
Check out Tek-Tips knowledge bank by clicking the FAQ link at the top of the page faq333-3811
 
Sorry, I'm under EXTREME pressure and I rushed that a bit. What I want to do is display a table on a ASP page. It's contents are derived from an Access database: the fields are the link (should this be classified as a hyperlink?), the link description, and something else. To display the link in a table, what do I write on the ASP code???
 
<table>
<tr>
<td><a href="<%=Recordset("LinkField")%>"><%=Recordset("LinkField")%></a></td>
</tr>
</table>

that's the closest i can guesstimate what you're looking for, of course you'll need to create the recordset object with database data and so on
 
Something like this:
Code:
<TABLE>
<tr>
<th>Your Whatever Field</font></th>
</tr>

<td>
<p align="center"><a href= "#" ONCLICK = 'ViewDetail("<%=rs("fieldname")%>")'><font face="Arial" size="1" color="#0000ff"><%=rs("fieldname")%></font></a></p>
</td>

</Table>

And later to view the link you can write ViewDetail function

Code:
<script language="VBscript">
Sub ViewDetail(fieldname)
Window.Location= "yourpagename.asp?fieldname="&fieldname
End Sub
</script>

Both the above code snippet goes in the page 1.

And in the page two

You do

yourfield=Request.QueryString("fieldname")

And then do what ever you want to with respect to this field.

Hope that gives you some idea.

Thanks

VJ
 
Simply:

Code:
<td>
<p align="center"><a href= "#" ONCLICK = 'ViewDetail("<%=rs("fieldname")%>")'><%=rs("fieldname")%>
</td>

VJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top