Solved

HTML fields in MS Access frontend database

Posted on 2013-01-05
6
568 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 84

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
Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

752 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