unprotect project - hidden module 
Author Message
 unprotect project - hidden module

I tried to create an .mde file, and was greeted with the message that I
needed to unprotect my project because a form had a hidden module which had
not been compiled properly.

I have looked and looked at this, and to the best of my knowledge there are
no hidden modules behind any of my forms.

can anyone tell me how to "unprotect" my project in Access 97, so whatever
error exists can be corrected?

Thanks for your help in advance.

Jim Clark



Thu, 12 May 2005 11:39:01 GMT  
 unprotect project - hidden module
Make a backup.
Test the undocumented /decompile command line switch.

The single command line looks like this (watch the wrapping!):
"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE"
"C:\MyDocs\MyFile.mdb" /decompile

This completely removes all compiled code from the project.

Then compact the database and re-compile it.
Then compact again.

See www.trigeminal.com for reasons why this can be very dangerous.
--
Joe Fallon
Access MVP


Quote:
> I tried to create an .mde file, and was greeted with the message that I
> needed to unprotect my project because a form had a hidden module which
had
> not been compiled properly.

> I have looked and looked at this, and to the best of my knowledge there
are
> no hidden modules behind any of my forms.

> can anyone tell me how to "unprotect" my project in Access 97, so whatever
> error exists can be corrected?

> Thanks for your help in advance.

> Jim Clark



Thu, 12 May 2005 13:05:31 GMT  
 unprotect project - hidden module
When you attempt to make an mde, the process compiles all your code.  If there
is an error in your code then you get the message you just received.  The
modules are not really "hidden".

Open your database, open a module, do a Compile All.  Fix any errors noted.
Compile again.  Once you successfully compile, try to make the mde.  

Quote:

> I tried to create an .mde file, and was greeted with the message that I
> needed to unprotect my project because a form had a hidden module which had
> not been compiled properly.

> I have looked and looked at this, and to the best of my knowledge there are
> no hidden modules behind any of my forms.

> can anyone tell me how to "unprotect" my project in Access 97, so whatever
> error exists can be corrected?

> Thanks for your help in advance.

> Jim Clark



Fri, 13 May 2005 05:11:57 GMT  
 unprotect project - hidden module
And also, if you had a previous code with a cmdButton_Click for exemple
that you changed after naming your cmdButton cmdOpen for instance, if
there is still code for the cmdButton_Click in you form, access tell you
this.

Meaning, all your codes need to be clean and usefull for access to
create the MDE file.

Quote:

> When you attempt to make an mde, the process compiles all your code.  If there
> is an error in your code then you get the message you just received.  The
> modules are not really "hidden".

> Open your database, open a module, do a Compile All.  Fix any errors noted.
> Compile again.  Once you successfully compile, try to make the mde.  


>>I tried to create an .mde file, and was greeted with the message that I
>>needed to unprotect my project because a form had a hidden module which had
>>not been compiled properly.

>>I have looked and looked at this, and to the best of my knowledge there are
>>no hidden modules behind any of my forms.

>>can anyone tell me how to "unprotect" my project in Access 97, so whatever
>>error exists can be corrected?

>>Thanks for your help in advance.

>>Jim Clark



Sat, 14 May 2005 04:23:44 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Unprotecting a module/project??????!!!!!!!!!!

2. hiding attached modules on unprotected book

3. Class modules - Hiding module variables

4. How to unprotect VBA-project from VBA?

5. Unprotect VBA Project Using Code

6. Unprotecting Project using Send Keys

7. unprotecting a VBA Project part 2

8. unprotecting a VBA Project

9. Creating a macro to protect/ unprotect a project

10. How to unprotect project


 
Powered by phpBB® Forum Software © phpBB Group