Microsoft AccessSimulating the Microsoft Access Runtime during Development

Provided by Molly Pell, Senior Systems Analyst


The Microsoft Access runtime version offers a royalty-free way to distribute your MS Access applications to users who do not have a license of Access. For Access 2016, 2013, 2010 and 2007, Microsoft offers the runtime version for free while earlier versions require a purchase.

For details on the different versions and download links, visit: Microsoft Access Runtime Distribution and Free Downloads

The runtime is similar to the full version of Access but designed for users to only run existing Access databases. They cannot create their own or modify the design of your databases. For example, the database window is not accessible, built-in toolbars are not supported, and the Visual Basic IDE is not available. Some of the Office features are also not available. The most significant being the Office spell checker. If that's necessary, the user must have the regular version of Access instead.

Implement VBA Error Handling for All Procedures

Because of the differences, it is important to ensure that your application works properly in the runtime environment prior to deployment. In particular, your error handler must be properly managed so that any crashes are gracefully managed and the database exits properly. That's because the Debug dialog is not available in a runtime deployment. For more details on error handling read our papers on:

Of course, while you are developing Microsoft Access databases, you are running the full version of MS Access. Rather than setting up another machine to test the runtime environment, Microsoft makes it easy to simulate the runtime environment using the /runtime command line.

Follow these steps to create a shortcut to launch the runtime version:

  1. From your Windows Desktop, right click and select New, Shortcut.
  2. When prompted to enter the location of the shortcut, enter the location of MSAccess.exe, followed by the location of your database, followed by the /runtime switch.
    For example:
    "C:\Program Files\Microsoft Office\MSACCESS.EXE" "C:\MyDB.mdb" /runtime
  3. When prompted for the shortcut name, type a descriptive such as: MyDB Runtime

By testing your application in this environment, you can find runtime-specific problems before deploying your application to others.

For more information on Command Line Options, visit Microsoft Access Command Line Options

Before releasing an application, you should test it thoroughly on a computer that only contains the lowest operating system supported by the application (with no updates), the Access runtime environment (if applicable), and any programs, controls, and DLLs that are installed by your application. If your application is distributed to the general public, you cannot be certain of the environment in which users will run your application.

For example, you may have developed your application in an environment with Office installed and expect products like Word, Excel or other Office components to be available. Since these parts of Office are not installed with the Access runtime, your users without Office products will encounter errors when they come across functionality that depends on them.

By testing in a minimal configuration, you can determine if there are dependencies that you did not address, and adjust your application or your dependencies accordingly.

Microsoft Access documentation and error preventionAn important feature of Total Access Analyzer when it documents your database is the detection of problems that may cause your Access application to crash. Maybe you have a query referencing a field that was renamed or deleted, a form's ComboBox that depends on a deleted table, a procedure call with the wrong number of parameters, or a report not set to the default printer.

These and 300+ other errors, suggestions, and performance tips are detected by Total Access Analyzer to help you develop and deliver better Access solutions. If it doesn't pass Total Access Analyzer's review, you're not ready to ship!

Table Design

Query Design

Form Design

Form Tips and Mistakes

Copy Command Button and Keep Picture

Module VBA to Forms and Controls

Form Navigation Caption

Resync Record in a Subform

Synchronize Two Subforms

Multiple OpenArgs Values

Late Bind Tab Subforms

Subform Reference to Control Rather than Field

Tab Page Reference

Shortcut Keys


Combo Box Top 6 Tips

Properties and Validation

Select First Item

Cascading Combo Boxes

Zip, City, State AutoFill

Report Design

Suppress Page Headers and Footers on the First Page of Your Report

Add the NoData Event

Annual Monthly Crosstab Columns

Design Environment

Add Buttons to the Quick Access Toolbar

Collapse the Office Ribbon for more space

VBA Programming

Basics: Forms and Controls

Run VBA Code from a Macro

Use Nz() to Handle Nulls

Avoid Exits in the Body of a Procedure

Shortcut Debugging Keys

Set Module Options

Math Rounding Issues

Rename a File or Folder

Avoid DoEvents in Loops

Age Calculations

Weekday Math

Send Emails with DoCmd.SendObject

Source Code Library

Microsoft Access Modules Library

Microsoft Access Modules

VBA Error Handling

Error Handling and Debugging Techniques

Error Number and Description Reference

Basic Error Handling

Pinpointing the Error Line

Performance Tips

Linked Database

Subdatasheet Name

Visual SourceSafe

Deployment

Runtime Downloads

Simulate Runtime

Prevent Close Box

Disable Design Changes

Broken References

Remote Desktop Connection Setup

Terminal Services and RemoteApp Deployment

Reboot Remote Desktop

Missing Package & Deployment Wizard

Avoid Program Files Folder

Unavailable Mapped Drives

Microsoft Access Front-End Deployment

System Admin

Disaster Recovery Plan

Compact Database

Compact on Close

Database Corruption

Remove 'Save to SharePoint Site' Prompt from an Access Database

Class Not Registered Run-time Error -2147221164

Inconsistent Compile Error

Decompile Database

Bad DLL Calling Convention

Error 3045: Could Not Use

Converting ACCDB to MDB

SQL Server Upsizing

Microsoft Access to SQL Server Upsizing Center

Microsoft Access to SQL Server Upsizing Center

When and How to Upsize Access to SQL Server

SQL Server Express Versions and Downloads

Cloud and Azure

Cloud Implications

MS Access and SQL Azure

Deploying MS Access Linked to SQL Azure

SQL Server Azure Usage and DTU Limits

Visual Studio LightSwitch

LightSwitch Introduction

Comparison Matrix

Additional Resources

Connect with Us

 

Free Product Catalog from FMS