Solved

Recommendations for setting field properties in MS Access Database when to do it?

Posted on 2016-09-28
7
34 Views
Last Modified: 2016-09-29
We need some recommendations on good solid database design for the following scenario with an MS Access Database.

We have a list of the URLs assigned to each offering where we display a list of the translated web pages for every single offering we have (one-to-many relationship). The URLs are stored in a "short text" field and after that we use a custom code in order to follow a hyperlink.

Should we switch the data type to be "hyperlink" instead of "short text", and how would it be affected in the GUI? Note that we may use that URL in our custom export procedure (we may export it to text file, we may copy it to clipboard, or we may as well combine it with some other piece of information from our DB and display it all together in a text file, it all depends on a type of the template we use during the export procedure). We also need to open a webpage on that URL through the GUI, but that part is fixed through the code.

Thank you

John
0
Comment
Question by:boltweb
7 Comments
 
LVL 7

Expert Comment

by:COACHMAN99
Comment Utility
Hyperlink is usually better.
I'm not sure if I follow all the questions (and how would it be affected in the GUI?), but why not clone the database and do a quick experiment?
0
 

Author Comment

by:boltweb
Comment Utility
Hello,   The GUI is an Access form that we have designed to act as a Graphical User interface for the users to run actions, macros and scripts from the Access DB.  It contains buttons that when clicked run specific macros and scripts that then use data which is in the Access database.
0
 
LVL 34

Accepted Solution

by:
PatHartman earned 500 total points
Comment Utility
Hyperlink is an Access specific data type so I would NOT use it.  The Hyperlink data type allows you to store two values in one field.  The visible link and the actual link.  If you want both, you can control them yourself without using the incomparable data type.  Just store two columns and use the form controls to show one but use the other.

I always use the FollowHyperlink method.  It works for any file extension that is known to Windows so you can use it to open spreadsheets or word documents as well as web pages.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
Comment Utility
No points please.

I agree with Pat, I NEVER use the hyperlink datatype  I too use the FollowHyperlink method and will frequently do that in the DoubleClick event of the textbox, or in the Click event of a command button located beside the textbox control.
0
 
LVL 30

Expert Comment

by:hnasr
Comment Utility
Actually both ways are fine.
URL saves you the extra work of formatting the URL. But the FollowHyperlink, on the other hand, may be useful for more checks if required.
0
 

Author Closing Comment

by:boltweb
Comment Utility
Thank you Pat.  Thank you also to other EE postings in this question.
0
 
LVL 34

Expert Comment

by:PatHartman
Comment Utility
You're welcome.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now