Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HTML fields in MS Access frontend database

Posted on 2013-01-05
6
Medium Priority
?
572 Views
Last Modified: 2013-01-08
Hi,

We have split an MS Access database so we have forms in a new frontend MS Access 2010 database and the data in a backend SQL Server 2008 R2 database.  All works well apart from the html fields with email addresses and websites.  Both fields are stored as nvarchar(max).  The email fields are now shown as  account@bsigroup.com#mailto:account@bsigroup.com#  and websites as www.bsigroup.com#http://www.bsigroup.com#

The problem is we want to retain the Access Front End database forms but need the html fields to act as before so that users can select the field value and launch either a browser session or create a new email.

Thanks in advance
0
Comment
Question by:qjump
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 43

Expert Comment

by:Eugene Z
ID: 38747853
what is the problem? data format? what was it before? what a format do you need?
is it shown in MS access form or stored this way in sql server db?
if stored in db:

you can run update with replcE SQL Function o do sql data CLEanup

http://msdn.microsoft.com/en-us/library/ms186862(v=sql.105).aspx


just in case:
How To Connect an HTML Page to a Microsoft Access Database
http://support.microsoft.com/kb/308459
0
 
LVL 85

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 1500 total points
ID: 38748416
Did you just recently move the data to SQL Server, and did this behavior just start after that move?

I ask because SQL Server does not have a 'Hyperlink' data type, like Access does. The 'Hyperlink' datatype is just a Text field anyway, and the interface interprets it to show the link.

Are you certain that your Form's control is setup correctly? That is, the textbox you're using to display that value - is the "DisplayAsHyperlink" property of that Textbox set correctly?

If it is, and you're still having issues with it, then you may need to code around this. You could do so by simply storing the address of the hyperlink, and using VBA to launch it.
0
 

Author Comment

by:qjump
ID: 38748419
Thanks for the reply.

The issue is the users need to be able to launch a browser when they select a website address from the record in the MS Access form.  They also need to be able to launch a new email message when they select the email address from the record in the MS Access form.

The secondary issue is the converted data records need tiding up using an appropriate REPLACE query as you suggested.

Thanks
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:qjump
ID: 38748440
Yes the data was recently moved to SQL Server and this problem as you rightly say is because SQL stores the data in a different format.

Im not sure what settings are needed for make the url launch correctly from the form and which vba code needs to be applied?

Thanks
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 38748753
this problem as you rightly say is because SQL stores the data in a different format.
Actually if you re-read the comment that is not what was stated, in fact quite the opposite.  Here is goes again (my emphasis):
I ask because SQL Server does not have a 'Hyperlink' data type, like Access does. The 'Hyperlink' datatype is just a Text field anyway, and the interface interprets it to show the link.
0
 

Author Comment

by:qjump
ID: 38748808
Ok, so given the interface does the interpretation what settings should be implemented for the email and website fields?

Thanks
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

704 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