?
Solved

How to stop  MS Access 2016 Runtime license security warnings during linking tables.

Posted on 2016-08-15
3
Medium Priority
?
257 Views
Last Modified: 2016-08-15
We have a GUI made completely in MS Access, which is currently running on MS Access 2016 version. We also have a couple of users which are running on 2016 runtime version of Access.

This app has the front-end GUI and the back-end database, both made with MS Access.

There is a part of the code inside this project that is triggered on the app loading procedure. It checks on the back-end DB path, so that the GUI can know if the back-end DB is existing on the specified path or not. If not, the GUI is going to try re-linking the tables from some other DB, which is specified by the user.

We have two options available for the tables linking - either a relative path (if paths don't match, link the tables from the local DB inside the /Data/ subfolder, which is located in the same folder as the GUI), or we can use an absolute path (specify the full path of the back-end DB). Either way, the GUI always needs a full path to the DB, because it needs to know what's the exact path of the new back-end DB.

The piece of code that removes the current table link and adds the new one is:

DoCmd.DeleteObject acTable, "Companies"
DoCmd.TransferDatabase acLink, "Microsoft Access", "C:\Work\SCM\00-Dev\AffiliateDB\CurrentVersion\Data\Data.accdb", acTable, "Companies", "Companies"

This feature works okay with the full version of Access, however in runtime version there are no security settings, and that's why we get the message saying "A potential security concern has been identified." Screenshot is in the attachment.

We are aware that the best solution is the digital signature of the project, however, we may not be able to obtain the certificate soon. Is there any way around to currently avoid this message? Otherwise, the users that are running the app in runtime version will need to click on "Open" button for about 40-50 times, since there's a lot of the tables which need to be linked.

Thanks in advance
0
Comment
Question by:boltweb
[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
3 Comments
 
LVL 22

Accepted Solution

by:
Kelvin Sparks earned 1600 total points
ID: 41756792
The method you luse for linking is unusual (to me).

Here is code that I use in relinking tables (assumes you have already deleted the prior linked table
Dim tdf As TableDef
For each tdf in db.Tables
If Len(tdf.Connect) > 0
DoCmd.Echo False, "Relinking table " & tdf.Name & "in database " & cDBPath & "\PWQData.mdb"
tdf.Connect = ";DATABASE=" & cDBPath & "\databaseName.accde"
tdf.RefreshLink
End if
Next


I've left a bit of the rest out as this is the main stuff


Kelvin
0
 
LVL 58

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 400 total points
ID: 41756805
As Kelvin said, just update the Connect property of the tabledef object.

It will be faster to boot than removing it from the collection and re-adding.

Also, make sure you maintain a constant connection to the BE for the life of the app.  That will really speed things up as well.

 Can be as simple as opening a hidden form bound to a table, or opening the BE db and/or a table in the BE in code.

Doing so avoids the repeated closing / opening of the BE by a user.

Jim.
0
 
LVL 1

Author Closing Comment

by:boltweb
ID: 41756926
Thank you guys. Worked like a charm!
0

Featured Post

Four New Appliances. Same Industry-leading Speeds.

But don't take it from us.  The Firebox M370 is Miercom tested and Miercom approved, outperforming its competitors for stateless and stateful traffic throughput scenarios.  Learn more about the M370, M470, M570 and M670 and find the right solution for your organization today!

Question has a verified solution.

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

This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
A look at what happened in the Verizon cloud breach.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Suggested Courses

770 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