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

VBA code disabled in ACCDE format

40
Hi all.
The above occurs, when I make an ACCDE format of my ACCBD (Access 2007) database. This means, some commands to be executed by my code are non-functional in the ACCDE, while they work perfectly in the ACCBD.
The attached screenshot is the warning message that pops up on opening the ACCDE format.

How do I go about rectifying the error/ malfunction associated with it, hence enabling my VBA code to run in the ACCDE?

..
Otherwise, I may opt to disable access to design view, datasheet view in forms and reports, and hide some objects (tables, queries, macros, modules), including the navigation pane - as a last resort if the above is not possible on my end.

Thank you.

Attached Images
File Type: png Screenshot 2015-05-25 16.28.50.png (32.2 KB, 1887 views)
May 25 '15 #1

✓ answered by jforbes

This seems like some thing worth trying:
http://bytes.com/topic/access/answer...de-not-working

14 4416
zmbd
5,501 Expert Mod 4TB
Do you have Office 2007 service pack 2 (link to MS) installed?

Also this thread: http://bytes.com/topic/access/answer...ecurity-notice
May 25 '15 #2
Shem K
40
I have Office 2007 Service Pack 3 installed.
---

I've implemented the Registry Edit, which eliminated the Security Notice message (both in accde and accdb). However, my code still disabled in accde.
---

Could it mean that, features Service Pack 3 installed disables my code in accde?

On the link to SP2, I'll need to ask our IT Manager to allow me to install it on my pc (also, if he could install it on the pcs that will run the database). My work is mostly on databases in the Firm.
May 26 '15 #3
zmbd
5,501 Expert Mod 4TB
if you have service pack 3 installed then you should be ok...
We skipped Office2007 because of issues like this so I'll have to do a little digging.
May 26 '15 #4
Shem K
40
Thanks, Z. I guess, in the meantime, I would have to settle for deploying the database in accdb and trust the users wouldn't figure out my manual method of disabling and limiting access to some objects. I'm still scratching through how to disable design view without using accde format, so I preserve the code and its functionality in some of my forms.

Wish I had known about this issue with Office '07. Had I been in a more administrative role in the Firm, I would have asked one of the Company's main partners to consider installing Office 2010 on all pcs (I'm assuming that Office 2010 upwards is in the clear, though I'd have to test my database on a pc that has it installed)
May 28 '15 #5
jforbes
1,107 Expert 1GB
I may me missing something, but I'm unsure of your problem. Are you trying to get rid of the Security Message Box that pops up or do you have a situation where you can't get the code to run?

The code should still run if the user clicks OK on the Security Notice Message Box. The Message Box is a pain in the butt that serves a very important roll. You can usually get rid of the Message Box by adding the Path to the .accde to the Access Trust Center or by thread provided by ZMBD about http://bytes.com/topic/access/answer...ecurity-notice, although I'm pretty sure your IT Manager would have a fit if you start disabling the Security Notices on their PCs.
May 28 '15 #6
Shem K
40
Hi JForbes.
I think the Message Box remain to work as is.

My main concern is that Access disables my code on my database's accde format. I thought that by disabling the Security Notice, it would also allow my code to run in accde, which didn't work.
Z had previously suggested that maybe it's a problem associated with Access '07 (and in Office '07 in general).
May 28 '15 #7
jforbes
1,107 Expert 1GB
This seems like some thing worth trying:
http://bytes.com/topic/access/answer...de-not-working
May 28 '15 #8
Shem K
40
JForbes, this solves it a great deal! Thank you so much!
:-)
I debugged my code, now it's running on accde format :-)
May 28 '15 #9
jforbes
1,107 Expert 1GB
That's good news.

It's been a while, but I remember running into this myself when coming back to developing in Access. What I did, and suggest to you, is to Customize the Standard Toolbar in the Visual Basic Editor by adding the "Compile Project" Command button right next to the Save Command button. Then whenever I click the Save Button, I click the Compile Button right after it. This has become habitual and I haven't had the problem you experienced since setting this up.
May 28 '15 #10
Shem K
40
Thanks for this direction. I've borrowed your concept of the Compile Project button next to Save Button now ;)
May 29 '15 #11
NeoPa
32,556 Expert Mod 16PB
JForbes:
Then whenever I click the Save Button, I click the Compile Button right after it.
Curious. I always compile followed by save. Unless I'm still deep in debugging/developing, I always close all code windows before either of them.

Being a bit of a keyboard shortcut man, I don't worry about the toolbars myself, but that's a pretty good idea generally. For anyone interested, the code to close a code window is Ctrl-F4; To compile the project is Alt-D -> L; To save is Ctrl-S.
May 29 '15 #12
jforbes
1,107 Expert 1GB
That's funny about the order of events. I usually go for saving first out of paranoia of loosing those changes, but I can totally see making sure the code compiles before saving so that a user doesn't end up running a database with syntax errors in it.

I also use the keyboard for a good many things, but I like having the Compile Button as it will Disable when the code is compiled and Enable when it needs to be compiled. So at a glance, it will indicate if there is unsaved changes... as long as I always Compile and Save at the same time.
May 29 '15 #13
NeoPa
32,556 Expert Mod 16PB
All makes sense :-)

I go for saving afterwards so that I know any saved version has been compiled. At the end of the day though, do what makes you happier ;-)
May 29 '15 #14
Shem K
40
Thanks for your great help in taking me through this one, gentlemen :-)
Jun 2 '15 #15

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

Similar topics

7
by: Alpha | last post by:
Hi, I'm maintaining C# code and am fairly new with C# programming. I'm looking for codes that's droping the 2nd digit of a nuber printed out and I suspect it's the code below. Can someone tell me...
0
by: Zytan | last post by:
With exception to turning auto-format off, in VB .NET, is it possible to paste copied text (say from an online help source) into the code, that spans multiple lines, into the VB .NET code without...
8
by: silversnake | last post by:
hi all, I'm trying to swap two array location within a 2d array using the swap function. I know that how to swap with in a 1d array eg " swap(array, inner, inner+1); " but how do I use swap within a...
1
by: bigshotj | last post by:
Hey Guys, I have made a small application that has a main form and a sub form. The main form contains fields like Bill No., Name of Customer, Month. and The subform contains several fields like...
2
matrekz42
by: matrekz42 | last post by:
Hello friends, I'm trying to run this Dynamic SQL in VB, but I keep getting "Compile Error" Syntax Error, in the "Bolded" area. I'm only trying to change these fields for the second query listed,...
1
by: mark | last post by:
Hi, I've converted my Access 2007 database to an accde format as I don't want users to be able to modify it. The only problem is that all the code has stopped working. I have split the database...
4
by: MrDeej | last post by:
Anybody now if i can do this programtically? My challenge is that i have a maybe 10 distributions a week with updates and changes which i now have found the accde format to be of good use. I also...
3
by: Maya16 | last post by:
I have created one application in access using VBA. In this project I am creating Dynamic Report. I am able to create and open report in development environment i.e. when the project is in accdb...
16
by: Sandy1992 | last post by:
Hi All, I have prepared my application in A2010. But only one user at a time can access the application which should not happen. I read somewhere that splitting the DB will do the work. But no...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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...

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.