Solved

SQL Hyperlink Conversion

Posted on 2003-11-10
5
678 Views
Last Modified: 2012-06-21
We are converting our Access back-end to SQL.  The hyperlink data types are getting converted to text data type.  Is there any way to keep the hyperlink capability in SQL?  I would like my Access Front-end to work the way it does now using the Access back-end.   I have many forms that show the hyperlink data with a blue line under it and the user can hyperlink to the document by clicking on the hyperline.  The user can also right click on a hyperlink and is offered an edit menu.  I would like to keep that functionallity.  I would like to make the change in SQL not in my Access Front-end if possible.
0
Comment
Question by:schmir1
5 Comments
 
LVL 1

Assisted Solution

by:s9
s9 earned 100 total points
ID: 9715686
SQL does not have the "Forms" front end interface that Access does.

What type of application are you going to use to access the data? VB, .Net, Java, web etc?  The answer to this will in some ways give you your answer..

eg - if you are building a web front end, then I would just put the URL in a varchar field in the SQL database.  Then when I look it up I can put the tags around it as required.
0
 
LVL 23

Assisted Solution

by:adathelad
adathelad earned 200 total points
ID: 9715745
I'm afraid you will have to make the change in your Access front end. SQL Server does not have a "hyperlink" datatype. Instead, you should use a VARCHAR field (not a TEXT field) - a length of 255 will probably do.

0
 
LVL 6

Accepted Solution

by:
acampoma earned 200 total points
ID: 9715828
You will have to store all hyperlinks in varchar and your forms, asp page whattever you are using to display the hyperlinks, will have to programatically convert the string to a hyperlink when the data is fetched from the database
0
 

Author Comment

by:schmir1
ID: 9716388
I am using Access 2000 (regular, not Project) for the Front-end.  

acampoma:
How do I program convert the string to hyperlink.  Can I add code to the On Click event that can call Access's hyperlink functions.  If so, do you know how to call these functions.

Or

Do I convert the VARCHAR when the form is opened, convert to hyperlink, then populate the text box with this value.  If so, how to I convert VARCHAR to hyperlink type?
0
 

Author Comment

by:schmir1
ID: 9718462
I got an answer from another question, that there is an Access property call "Is hyperlink" that will do what I need to do.  I'm accepting your answers because it is good info.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
query execution hang 5 28
TSQL - How to declare table name 26 29
what are the unique tables in SQL master database 5 58
Tsql query 6 21
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question