dbTalk Databases Forums  

Can't delete module

comp.databases.ms-access comp.databases.ms-access


Discuss Can't delete module in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bob Darlington
 
Posts: n/a

Default Can't delete module - 06-21-2010 , 01:31 AM






I have a module named 'Module1' which was created in error.
If I try to delete it I get the usual 'Do you wish to permanently
delete....' message but the module remains.
If I try to open it in design view, I get a message 'The module name
'Module1' is misspelled or refers to a module that doesn't exist'. So I
can't open or delete it.
Any ideas?

--
Bob Darlington
Brisbane

Reply With Quote
  #2  
Old   
Douglas J. Steele
 
Posts: n/a

Default Re: Can't delete module - 06-21-2010 , 05:55 AM






Have you tried compacting the database?

If that doesn't help, create a new database and import all of the objects
from the existing one into the new one.

--
Doug Steele, Microsoft Access MVP
http://www.AccessMVP.com/DJSteele
Co-author: Access 2010 Solutions, published by Wiley
(no e-mails, please!)

"Bob Darlington" <bob (AT) notheredpcman (DOT) com.au> wrote

Quote:
I have a module named 'Module1' which was created in error.
If I try to delete it I get the usual 'Do you wish to permanently
delete....' message but the module remains.
If I try to open it in design view, I get a message 'The module name
'Module1' is misspelled or refers to a module that doesn't exist'. So I
can't open or delete it.
Any ideas?

--
Bob Darlington
Brisbane

Reply With Quote
  #3  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Can't delete module - 06-21-2010 , 09:12 AM



Bob Darlington wrote:

Quote:
I have a module named 'Module1' which was created in error.
If I try to delete it I get the usual 'Do you wish to permanently
delete....' message but the module remains.
If I try to open it in design view, I get a message 'The module name
'Module1' is misspelled or refers to a module that doesn't exist'. So I
can't open or delete it.

When you import everything as Doug said, be sure to
select/check each module individually. Do NOT select All
Modules and uncheck the faulty module.

--
Marsh

Reply With Quote
  #4  
Old   
Bob Darlington
 
Posts: n/a

Default Re: Can't delete module - 06-21-2010 , 05:30 PM



Thanks Marsh and Doug,
I'll try that today.
By the way Marsh, what is the go with having to select all objects
individually?

--
Bob Darlington
Brisbane
"Marshall Barton" <marshbarton (AT) wowway (DOT) com> wrote

Quote:
Bob Darlington wrote:

I have a module named 'Module1' which was created in error.
If I try to delete it I get the usual 'Do you wish to permanently
delete....' message but the module remains.
If I try to open it in design view, I get a message 'The module name
'Module1' is misspelled or refers to a module that doesn't exist'. So I
can't open or delete it.


When you import everything as Doug said, be sure to
select/check each module individually. Do NOT select All
Modules and uncheck the faulty module.

--
Marsh

Reply With Quote
  #5  
Old   
Salad
 
Posts: n/a

Default Re: Can't delete module - 06-21-2010 , 06:26 PM



Bob Darlington wrote:

Quote:
Thanks Marsh and Doug,
I'll try that today.
By the way Marsh, what is the go with having to select all objects
individually?

If I were guessing, it'd be so you don't select and attempt to import
the faulty module as well.

Reply With Quote
  #6  
Old   
Marshall Barton
 
Posts: n/a

Default Re: Can't delete module - 06-21-2010 , 09:47 PM



Bob Darlington wrote:

Quote:
Thanks Marsh and Doug,
I'll try that today.
By the way Marsh, what is the go with having to select all objects
individually?

If you select all modules, the bad one will be selected, but
the bad one will either not be there to deselect or you will
be unable to deselect it because of the same problem that
module has when you tried the other things. Then the import
will fail on the bad module.

If you know it is a bad module, then you can use select all
on other type of objects, just not module objects. If it a
form or report or a form/report module then avoid using
select all for the form or report objects.

--
Marsh

Reply With Quote
  #7  
Old   
Bob Darlington
 
Posts: n/a

Default Re: Can't delete module - 06-21-2010 , 10:57 PM



Thanks Marsh. That makes sense.

--
Bob Darlington
Brisbane
"Marshall Barton" <marshbarton (AT) wowway (DOT) com> wrote

Quote:
Bob Darlington wrote:

Thanks Marsh and Doug,
I'll try that today.
By the way Marsh, what is the go with having to select all objects
individually?


If you select all modules, the bad one will be selected, but
the bad one will either not be there to deselect or you will
be unable to deselect it because of the same problem that
module has when you tried the other things. Then the import
will fail on the bad module.

If you know it is a bad module, then you can use select all
on other type of objects, just not module objects. If it a
form or report or a form/report module then avoid using
select all for the form or report objects.

--
Marsh

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.