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

Cannot delete forms and modules

Using Access 2002.
I have imported one form and two modules from another database, in order to
compare code.
Having finished the comparison, I cannot delete them.

When I press 'Delete', I get a message asking for confirmation 'Do you want
to permanently delete etc', I respond 'Yes' but the object remains. No error
message is generated.

If I try to open the object in design view, I get a message:
'The form 'formname' is misspelt or refers to a form that doesn't
exist.....'.

I presume the objects have become corrupted??

I have previously imported and deleted objects like this with no problems at
all.
Has anyone else experienced this problem?
And if so, is there a solution other than importing all objects into a new
db?
--
Bob Darlington
Brisbane
Nov 13 '05 #1
3 11972
Decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and include
the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"

If that still doesn't work you could import everything into a new database,
as described in the first symptom in this article:
Recovering from Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-47.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps.org.

"Bob Darlington" <bo*@dpcmanAX.com.au> wrote in message
news:41**********************@news.optusnet.com.au ...
Using Access 2002.
I have imported one form and two modules from another database, in order
to compare code.
Having finished the comparison, I cannot delete them.

When I press 'Delete', I get a message asking for confirmation 'Do you
want to permanently delete etc', I respond 'Yes' but the object remains.
No error message is generated.

If I try to open the object in design view, I get a message:
'The form 'formname' is misspelt or refers to a form that doesn't
exist.....'.

I presume the objects have become corrupted??

I have previously imported and deleted objects like this with no problems
at all.
Has anyone else experienced this problem?
And if so, is there a solution other than importing all objects into a new
db?
--
Bob Darlington
Brisbane

Nov 13 '05 #2
Thanks Allen.
I tried decompile with no luck.

--
Bob Darlington
Brisbane
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
Decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and
include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"

If that still doesn't work you could import everything into a new
database, as described in the first symptom in this article:
Recovering from Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-47.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps.org.

"Bob Darlington" <bo*@dpcmanAX.com.au> wrote in message
news:41**********************@news.optusnet.com.au ...
Using Access 2002.
I have imported one form and two modules from another database, in order
to compare code.
Having finished the comparison, I cannot delete them.

When I press 'Delete', I get a message asking for confirmation 'Do you
want to permanently delete etc', I respond 'Yes' but the object remains.
No error message is generated.

If I try to open the object in design view, I get a message:
'The form 'formname' is misspelt or refers to a form that doesn't
exist.....'.

I presume the objects have become corrupted??

I have previously imported and deleted objects like this with no problems
at all.
Has anyone else experienced this problem?
And if so, is there a solution other than importing all objects into a
new db?
--
Bob Darlington
Brisbane


Nov 13 '05 #3
Create a new database and import the items one at a time. I know it's a pain
in the backside doing it that way, but one of the items (in my experience,
usually a form) is corrupted. Probably have to do it several times to find
the corrupt item. You may get away with importing all the tables and queries
at one hit.

HTH
Phil

"Bob Darlington" <bo*@dpcmanAX.com.au> wrote in message
news:41***********************@news.optusnet.com.a u...
Thanks Allen.
I tried decompile with no luck.

--
Bob Darlington
Brisbane
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:41***********************@per-qv1-newsreader-01.iinet.net.au...
Decompile a copy of the database by entering something like this at the
command prompt while Access is not running. It is all one line, and
include the quotes:
"c:\Program Files\Microsoft office\office\msaccess.exe" /decompile
"c:\MyPath\MyDatabase.mdb"

If that still doesn't work you could import everything into a new
database, as described in the first symptom in this article:
Recovering from Corruption
at:
http://members.iinet.net.au/~allenbrowne/ser-47.html

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps.org.

"Bob Darlington" <bo*@dpcmanAX.com.au> wrote in message
news:41**********************@news.optusnet.com.au ...
Using Access 2002.
I have imported one form and two modules from another database, in order
to compare code.
Having finished the comparison, I cannot delete them.

When I press 'Delete', I get a message asking for confirmation 'Do you
want to permanently delete etc', I respond 'Yes' but the object remains.
No error message is generated.

If I try to open the object in design view, I get a message:
'The form 'formname' is misspelt or refers to a form that doesn't
exist.....'.

I presume the objects have become corrupted??

I have previously imported and deleted objects like this with no
problems at all.
Has anyone else experienced this problem?
And if so, is there a solution other than importing all objects into a
new db?
--
Bob Darlington
Brisbane



Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jelmer | last post by:
Hi I've been trying to create an addin similar to Find & Replace from Rick Fisher that looks thru your tables / queries / forms / modules etc.. for a reference to a string and optionally let's you...
1
by: Primerov | last post by:
Is it possible to delete all the modules in a form ? For example from the click event of one form to delete all the modules in another form.
4
by: sea | last post by:
I have a database in Access 2002 but I am unable to view code or write any modules when logged in with a limited user account using Windows XP, service pack 2 -- no problems when logging in as...
3
by: Ryan Liu | last post by:
Hi there, I got a NullReferenceException when delete last row in a datagrid. I had hard time to solve since it does not occur in my own code. I put a datagrid in my inherited user control,...
6
by: Aaron Smith | last post by:
Ok. I have a dataset that has multiple tables in it. In one of the child tables, I have a column that I added to the DataSet (Not in the DataSource). This column does not need to be stored in the...
4
by: Mark | last post by:
Good morning. I recently made some changes to my Access project, and I introduced some problems that I could not resolve. So I deleted the forms that I had altered and saved the project. Then I...
6
by: =?Utf-8?B?RmFiaWFu?= | last post by:
Hi, I have a pretty complicated program which consists of the following basic modules: 1. a C# application 2. a C++/CLI application which is controlled by the C# app via IPC remoting 3. lots...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 20:19, Akira Kitada wrote: Thanks. The errors you are getting appear to be related to either some missing header files or a missing symbol definition to enable these - looking...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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.