Solved

HTML fields in MS Access frontend database

Posted on 2013-01-05
6
570 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 500 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

623 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