Solved

Microsoft access with VBA

Posted on 2014-10-13
5
311 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:LukeChung-FMS
LukeChung-FMS 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 34

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

706 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

19 Experts available now in Live!

Get 1:1 Help Now