473,385 Members | 1,727 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.

Converting accdb to accde VBA code is not working

222 100+
Dear friends

I am working on access 2007 sp2.

I do have a database(accdb) i converted it to accde.

While I am opening the converted database the VBA code is not working.

For example
Expand|Select|Wrap|Line Numbers
  1. docmd.maximize
on each form is not working and forms won't maximize

Is it a bug on my office or I am doing something wrong...


Could you please point me to the write direction


Thank you all
Nov 8 '09 #1

✓ answered by mshmyob

Before converting it into an accde format you should test ALL your code by "compiling" it. Everything may appear to work in the accdb version but when converted won't work if there are some problems.

To "compile" it you open your accdb version and go into any of the code. Then select the DEBUG menu option and select COMPILE (1st option). If you get any errors then fix them and the compile again just to double check. Then try creating your accde again.

Try this and let us know.

cheers,

11 24863
missinglinq
3,532 Expert 2GB
Are you running the accde file from the same folder as the original accdb was run from, or from somewhere else? Does other code run?

Remember that in order for code to run in Access 2007, the file has to be in a folder that has been set as "Trusted."

Linq ;0)>
Nov 8 '09 #2
wassimdaccache
222 100+
Yeah I am running my accde file in the same folder root.

also I added a trusted location and I enabled all macros.

Nothing on the code is working (VBA) Macros are working well.

P.S all code is working well before the accde conversion
Nov 8 '09 #3
HI Wassim,


I am having the same problem. Did you ever figure out how to solve it?

Regards
Meir R.
Mar 9 '10 #4
wassimdaccache
222 100+
No didn t get any solutions yet ...
Mar 11 '10 #5
mshmyob
904 Expert 512MB
Before converting it into an accde format you should test ALL your code by "compiling" it. Everything may appear to work in the accdb version but when converted won't work if there are some problems.

To "compile" it you open your accdb version and go into any of the code. Then select the DEBUG menu option and select COMPILE (1st option). If you get any errors then fix them and the compile again just to double check. Then try creating your accde again.

Try this and let us know.

cheers,
Mar 11 '10 #6
HI

I was just going to post the solution of "Compiling" the code before the converting to ACCDE. In Access 2003 and earlier version the conversion automatically did a "Compile" seems that 2007 doesn't. So even if there are no problems with the code you still need to "officially" compile it.

Thanks

Regards

Meir
Mar 11 '10 #7
TheSmileyCoder
2,322 Expert Mod 2GB
You also need to compile it in Access 2003. At least that has been my experience.
Mar 11 '10 #8
Hi ev one
I got the same problem with Access 2010

I did the Compiling and it worked just fine.

It seems to b that also in Access 2010 you must Compile before covert to ACCDE file.

tnx to u all
Nizar
Nov 12 '10 #9
Hi Mshmyob

Thanks a lot for this information. You make my day and now it works perfectly
Jun 6 '16 #10
NeoPa
32,556 Expert Mod 16PB
Actually that solution was first posted by Mshmyob in post #6. Nizar simply posted, like yourself, to thank the earlier posters for their assistance.

Glad that you got the help you needed anyway :-)
Jun 6 '16 #11
I changed my post and you're right, Giving credit where credit is due

one must give to Caesar what is Caesar's'.
Jun 7 '16 #12

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

Similar topics

3
by: Robert | last post by:
I understand that new features would not be available but is there any way I could open an accdb database in Access 2003? Robert
4
by: ARC | last post by:
I have another question. With Access 2007, as I understand it, you only need to use the .accdb if you are using features such as memo notes history, or the multiple selections for a given key id. ...
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...
3
RobH
by: RobH | last post by:
I am trying to generate a complied version of my Application by clicking on the "Make ACCDE" in Access 2007. It asks me where and with what file name to save the ACCDE however it quickly returns with...
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...
6
by: postman | last post by:
I have an application that minimizes the Access application window and displays a pop-up modal form. The Application window is minimized with this command in the form's Load event. ...
0
by: brendanmcdonagh | last post by:
Hi all, I have been working with java on a database program that connects via jdbc odbc access driver on my xp desktop. It is working fine but I'm installing it on 3 pc's tomorrow so testing it...
4
by: junaidfaiz | last post by:
resently iv created a software which is working fine in open format and i just have madte it converted to .ACCDE file but have lost all the links attached to it's buttons. It is in the trusted folder...
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...
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: 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...
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
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.