Solved

General Question Over Ms Access Reference Libraries, Runtime, and the Such in VBA

Posted on 2016-11-08
2
33 Views
Last Modified: 2016-11-09
I have Access 2016 on some systems and I don't have any Office on some other systems. I am currently using Dymos SDK which uses different references that were installed in Access during the SDK install. My main questions is....When you develop a Front End in Access 2016 with these references and then run them on another PC with Runtime only.  Are the references embed in the Front End and will it still work?

I have had some bugs while running in runtime and in the next few days I am going to try and smooth out the system. It worked perfect on my PC with 2016 where it was developed. I just want to clarify this first. Thanks!
0
Comment
Question by:Dustin Stanley
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 41880294
No, they are not embedded. You must deploy and install any non-native references used in your project. In the case of your SDK, you'd have to determine exactly what files are required for "runtime" and deploy/install those. You may also need other objects with that Dymo feature (the "label" file, if you used one).

You should do this with an installer of some sort. The deployment mechanism in Access is pretty lame, but you could try it to see if it works. You'd be much better off using a commercial installer like InstallShield, Inno Setup, Installmate, etc. One of the most important things an installer does is ensure your target environment has all required files and libraries. It also allows you to easily deploy and install/register items like your Dymo SDK.

If you want to try the built in process see this article for more information:

https://support.office.com/en-us/article/Create-an-Access-app-package-5c409c03-ded9-4a41-82c3-fdd490a91b42?ui=en-US&rs=en-US&ad=US&fromAR=1

I also note you will be deploying to users without Office. If you have a reference to any of the Office libraries other than the Office 16.0 Access database engine Objects, your application will fail. For example, if you're using Excel or Word automation then your end users would be required to have a licensed copy of Office on the machine.

You should also thoroughly test your application in Runtime mode, since it seems you'll be deploying to users without Access installed (or Office, for that matter). You can do that by saving a copy of your application with the .accdr extension, and then run that copy. Access will simulate the Runtime environment.

You should also run a split configuration, where you're supplying a BackEnd (Tables only) and a FrontEnd (everything else). This will require you to have some form of "relink" code, so be aware of that.
1
 

Author Closing Comment

by:Dustin Stanley
ID: 41881621
Thanks!
0

Featured Post

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.

Join & Write a Comment

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

744 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

16 Experts available now in Live!

Get 1:1 Help Now