473,394 Members | 1,811 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

How to compile Access database

44
Hi all,

I have setup a database and am trying to figure out the best way to compile it as a few people are using this database.
At the moment if someone logins to the database at the same time as someone else they are locked out of it and only given the read only version.

Whats the best way to fix this?
Mar 5 '09 #1
9 55022
PianoMan64
374 Expert 256MB
@DavidPT
Hey DavidPT,

Welcome.

To solve you issue, this is what I suggest that you do.

1. If you haven't split the database yet into Data Table in one, and all the other Queries, Forms, reports, Macro and Modules in another, please do so.

2. Once that is completed, you need to make sure that you have a Network shared directory that has Read,Write, Change Permissions for all users of the database.

3. Copy the MDW (User Workgroup File) and MDE (Compiled Version of your database) file that you have for your application to the Network Share.

4. Have each user copy the MDE file to a local directory that has all the forms, etc onto there local computer.

4. Then when they log in make sure that the MDW file that you're pointing too is located on a Network shared drive as described before in option 2.

5. Once all that is setup, this should take care of your problem.

If you have any more questions, please feel free to let me know.

Thanks,

Joe P.
Mar 5 '09 #2
NeoPa
32,556 Expert Mod 16PB
Front-End / Back-End (FE/BE) will possibly help with the splitting. This is generally recommended for multi-user Access databases.

However, I should point out that read/only, when opening an Access database, refers to the design rather than the data. It is still possible for the users to use it in that mode.
Mar 10 '09 #3
DavidPT
44
Thanks for the replys,

I was able to compile it and all users can use it without a problem. Is it possible to uncompile once it has been compiled?
Mar 11 '09 #4
NeoPa
32,556 Expert Mod 16PB
Every time a design change is made, the project is flagged as uncompiled. I doubt this means that every object loses the benefits of being compiled, but I'm not sure. Certainly it enables the Compile [project name] option in the Debug menu.
Mar 11 '09 #5
missinglinq
3,532 Expert 2GB
The question "Is it possible to uncompile once it has been compiled?" makes me think it's possible that you're being confused by the term "compiled" as it applies to an Access database.

"Compiling" an Access database is not the same as "compiling," say, a Visual Basic program. When you do that to a VB program, all code is "locked and hidden" from the users, and it can be run by any PC, whether or not there is a copy of Visual Basic on that PC.

This is not true when "compiling" an Access database. Access basically just checks all code in the app for correctness. End users still have access to code and can still make design changes, and thus you don't need to "decompile" it in order to make changes.

In addition, a "compiled" database cannot be run on a PC that 'doesn't have some form of Access on it. It doesn't have to be a full version of Access, it can be what is know as a "runtime" version, but, unlike a compiled VB program, there has to be some version of Access on board.

You can, after compiling an Access database, convert it to an MDE file, as Joe mentioned, and this will "lock" it from code/design changes by the end users, but they will still need some version of Accesss on board to run it.

Linq ;0)>
Mar 11 '09 #6
OldBirdman
675 512MB
I would love to convert mine to an MDE file. Tools->Database Utilities->Make MDE File...produces "Microsoft Access was unable to create an MDE database" when "Save" pressed in "Save MDE As" dialog. No message number, no help, no nothing.
My choices are "OK".
Mar 11 '09 #7
DavidPT
44
Thanks again for all the reply's,

My access database has been compiled as a MDE file. It allows me to design new queries but will not allow me to design any reports or even modify any reports. So im guessing that its locked me out, is there any way of fixing this? or will i just need to design the reports from my original MDB file and then compile it again?
Mar 11 '09 #8
missinglinq
3,532 Expert 2GB
Yes, David, all design changes need to be made in the original MDB file, then re-compile and covert to MDE again.

BirdMan, you need to go into the code module for any form in your app, select

Debug from the Menu, then select

Compile xxx,

wher xxx is the name of the database.

Access will then tell you about any problems it finds anywhere in the database, so that you can fix them. After repeating this until it compiles without errors, you can go back as you did previously and convert to an MDE file.

You've been at this long enough to know, Bird, but I'll state it for newbies who may come here later on; you have to store the MDB file in a safe place, because any modifications you make later will have to be done with the MDB file. An MDE file cannpt be modified!

Linq ;0)>
Mar 11 '09 #9
OldBirdman
675 512MB
Longevity is not a guarantee of knowledge. Thank you for the answer. I guess I've orphaned some event procedures when I deleted controls, so it won't compile.

Having never tried before this project to make an MDE, I just thought that I just had to choose Save As MDE.
Mar 11 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Roy Gourgi | last post by:
Hi, I am using VS.NET 2003 and I have made a connection to a MS Access database using the Server Explorer. Is this connection permanent, meaning that it will be there every time I reopen my...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
5
by: LG | last post by:
Hi, I have recently used the Microsoft that will detect idle time coding on my Access database and it works fine as long as you do not add any data or move from one form to another. As soon as...
21
by: nihad.nasim | last post by:
Hi there, I have a database in Access that I need on the web. The web page should connect to the database and write records for certain tables and view records for others. I want to know a...
2
by: cnixuser | last post by:
Hi, I am working on a class assignment, and I am receiving an error, that has me stumped. In the assignment I am trying to bind a datagrid control to an Access Database. When I compile the Web...
10
by: darrel | last post by:
Hi there vb genius... I have a problem, i'am currently doing a program that has a database on it. i'am using access database, my problem is the records on my database table doesnt appear on my...
14
by: SimeonD | last post by:
Hi I have an access database called Sales.Mdb In vb.net 2005, I'd like to open it. Which I can do. What I can't figure out is how to figure out if Sales.Mdb is open already. If so, I want to open...
3
by: zibuteee | last post by:
How to compile a MS Access database as a few people can use this database? I have just started to use MS Access so if someone could explain how to compile it, I would be very grateful. Thanks, ...
2
by: Medaron | last post by:
I am trying to wite a vba code to read all my outlook task fields in Access database. So far I have following code: Sub OutlookTasks() Dim ol As Object Dim olns As Object Dim objFolder As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.