Solved

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

Posted on 2016-11-08
2
50 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
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…

810 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