473,388 Members | 1,342 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,388 software developers and data experts.

How to continue changing my VBA after start using .mde

41 32bit
Let's supose I have a .mdb file with a lot of information including forms, reports and tables. Since this file is used every day, the infomation in the tables changes every day too.
But now I want to creat a .mde file due to security reasons. I will create it and it will be used changing the contente of the tables as told before.
Since this moment, how can I continue changing the VBA program?
If I keep a copy of the original file, it will not be updated with the information of the .mde file.
If I try to change the VBA at the .mde, the VBA source code is not there any more.
How can I change the VBA program of a .mde file?

Best Regards.
Ricardo de Milano
Jun 27 '14 #1
5 1190
JenZzz
9
Hi Ricardo,

A .mde file is made so people can't change anything anymore. The code is never viewable anymore.

I would suggest you to split your database. By keeping all the tables in a secure back end the data keeps the same. It's very simple if you follow the wizard. The following link provides you with more info on the subject
http://office.microsoft.com/en-us/ac...010342026.aspx

Afterwards, to get to the question, I solve this problem by doing this:
I create a table in the backend, called "Tbl_LatestVersion" and a table in the .mde frontend called "Tbl_Version".

Expand|Select|Wrap|Line Numbers
  1. Public Sub CheckVersionAndPath()
  2. If DLookup("Version", "Tbl_Version") = DLookup("LatestVersion", "Tbl_LatestVersion") Then
  3.         Exit Sub
  4.     Else
  5.         MsgBox "The version of the front-end currently in use is out of date. Please update to a newer version.", vbCritical Or vbOKOnly, "Old version!"
  6.         DoCmd.Quit
  7. End Sub
  8.  
The code above runs every time the database is opened and checks whether or not the latest version of the frontend (.mde) is being used.

This way people can use the .mde and you can change the things you want in your .mdb.
If you are done changing, you change the values in both tables and create a new .mde.
This way the old .mde becomes unusable and so you can be sure that everyone is using the latest version.

Please note that this solution is far from perfect!!
If I am being unclear, let me know and I'll be more detailed when I have got more time.

Jens
Jun 27 '14 #2
NeoPa
32,556 Expert Mod 16PB
As Jens says, you can't have the security of the *DE files at the same time as being able to change the code in them. The security as it is, is based on the fact that the code (and design) cannot be changed.

That said, as was also made clear by Jens, what you are really after is a way to keep the existing data when you make a release, which is fairly straightforward and involves splitting your database into Front- and Back-Ends (FE/BE).

Front-End / Back-End (FE/BE) gives some more info on that, but as Jens says, there is also a wizard specifically to help with the task of splitting an existing DB.
Jun 27 '14 #3
Ricardo de Mila
41 32bit
Thank you everybody...
I will have to understand a little bit better some questions about back end tables and front end tables so I can come back afterwards to say something about that.
All my tables changes every month. I'm still not sure I can use the presented solution, but appear to be a good idea.
Thank you very much.
Ricardo de Milano
Jun 30 '14 #4
NeoPa
32,556 Expert Mod 16PB
It's a bit of an idea to take on board Ricardo, but most Access designers use this approach for everything except very small and simple databases. It is the standard way of designing projects.
Jun 30 '14 #5
twinnyfo
3,653 Expert Mod 2GB
Ricardo,

To echo what the others have said here, having a split database is essential. However, it is also very simple to do and maintain. I have my .mdb file and a copy of my data tables local, and then, when I publish my DB to a network location, I relink all the tables to the network location.

You said:

All my tables changes every month.
Does this mean that you are replacing some tables with new tables and the table names are changing? If this is the case, I would also recommend you find a way to create static tables that do not need new names, but only that the data changes.

I have not encountered "new tables" on a recurring basis, unless I am adding a new functionality to my db (which you may be doing). Please explain you situation, and we may be able to advise on a better method.
Jul 2 '14 #6

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

Similar topics

6
by: Jacqueline | last post by:
Hi, I would like to be able to write some code in Javascript preferably (PHP is also all right) which allows the admin of a website to be able to change stylesheet attributes from a GUI browser...
3
by: apm | last post by:
All or Anyone: Is there a way to change from uppercase to lowercase all the characters of all the source files in a project? Thanks in advance. David
0
by: Thomas G. Apostolou | last post by:
Hello all, Dear Ng Pheng Siong, thank you for your great job with M2Crypto. I have got and build 0.15 version on a win xp box recently and was reading your "ZServerSSL HOWTO" document so that...
1
by: Piotrek Alchemik | last post by:
I'm looking for any sample of code how to change drawing my mesh. I have one box and i'd like to change point 0,0,0 starting not from one of the corners, but i'd like to start at bottom of my cube...
2
by: J4CK4L | last post by:
Hi everyone! I need some basic explanation on how manipulate NTFS in C++: for example how I can retrive the partition table, how can I resize a partition... I know this is not simple but I need a...
4
kestrel
by: kestrel | last post by:
i found it once before, but ive lost it again. there was a program or wizard or whatever, that allowed me to change the start-up, shut down sounds, ect. im running XP home can anyone help me?...
0
by: johnathp | last post by:
hi there, I am trying to reset a password using this code snippet and it worked fine but only one concern I have is that, I need to let the user know if he has used a old password wrong. if the user...
1
by: T00ks | last post by:
The Background: I have data stored in an SQL Database, i'm using asp.net and c# to retrieve the data from the database and update the client side asyncronously (sp?). the behind code looks as...
3
by: wassimdaccache | last post by:
Dear sirs, I am trying to develop a website using MACROMEDIA with html forms. I was trying to make a small database & assign a user name and password to access some forms in my website. ...
4
raubana
by: raubana | last post by:
...yeah, I already know some 'action script' (Flash programing) and I definetly know some Python, so I think I'm ready to learn Java. The problem is I don't know where to start. So what should I do
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.