Solved

Microsoft access with VBA

Posted on 2014-10-13
5
316 Views
Last Modified: 2014-10-28
When using Access VBA Programming, there is no executable created outside of the Access application correct?

In other words, there is no stand alone program created by using Microsoft Access with VBA programming.
All of the execution is done within Microsoft Access application using the objects like forms and reports that associate with VBA.

So all users must have the Microsoft Access application which has access to an access database with these components like Reports or Forms. Thus the users are sharing an access database.
0
Comment
Question by:metro156
5 Comments
 
LVL 15

Assisted Solution

by:Haris Djulic
Haris Djulic earned 125 total points
ID: 40378802
You are right, in Access all objects are in the access file and if you  more than one user to open and use the access application you need to share it.

One way you can go is that you have 2 access databases one which will hold the data and one which will hold all the forms, reports etc. in this way you will have clients - server infrastructure.

In order for users to run the access application , they can have the Access Runtime which enables user to run the Access application without having the Access installed.
0
 
LVL 10

Expert Comment

by:HuaMinChen
ID: 40379020
Yes, we have to provide the relevant Access DB for users to access the application.
0
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 125 total points
ID: 40379571
All of what you said is correct.   The only thing I'd add to what samo4fun said is:

1. The run time version of Access is freely downloadable for A2007 and up.

2. Run time mode is not the same as full mode; no design features are enabled, nor are there any wizards.  

  You can see how run time mode works by using the /runtime switch when starting a DB or name it .accdr if your using A2007 and up.

Jim.
0
 
LVL 10

Assisted Solution

by:Luke Chung
Luke Chung earned 125 total points
ID: 40379664
Yes, its similar to Excel or Word where a file can be sent to others who can open it if they have the associated product.

Using a split database architecture is critical for supporting a multiuser environment or another user while you are developing (if overwriting or losing their data is an issue). Wrote a whitepaper on splitting a database here: http://fmsinc.com/MicrosoftAccess/DatabaseSplitter/index.html
0
 
LVL 35

Accepted Solution

by:
PatHartman earned 125 total points
ID: 40379844
Thus the users are sharing an access database.
No.  They don't share a database.  Each individual has his own personal copy of the FE.  Just as you install software on individual PCs, you "install" the FE part of the application on each user's PC.  The FE links to the BE which IS shared and resides on a server.  The only thing the BE contains is tables.  The FE contains all the application parts.

You are correct in that there is no executable.  As others have mentioned, you must have either the full version of Access or the Access Runtime engine (a free download from A2007 on).  (you need specific .dll's to run VB applications and the .net framework to run .net apps so this is not unusual or burdensome)  Before you distribute the FE, you "compile" it into an .accde.  That turns all the source code into p-code which is partially compiled and the source is removed from the application.  That makes forms/reports/modules unavailable for change in the .accde although users can still mess around with tables (local only)/macros/queries.  So, you MUST keep the original .accdb in a safe place because if you need to make any modifications in the future, you will need to go back to the .accdb, make the changes, and generate a new .accde.

To make the FE slightly less vulnerable to tampering by users, rename it to .accdr.  This doesn't protect it, it just keeps the user from opening it in design view.  Of course, a savvy user may know he can simply rename the file so making the .accde first is best.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

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…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

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