Pendragon <(E-Mail Removed)> wrote:
>I had two databases open - one for reference and the other to update a form.
> After making several changes on the form, Access crashed on me. In
>re-opening the database, I see the form I was working on in the forms list.
>However, when I try to open the form in design view, nothing happens. I
>tried to copy the form within the same database with a different name, and
>nothing happens. I tried to export the form to a blank database, and I get
>"No current record" for an error message.
Try importing that form into a new MDB rather than exporting.
Also try decompiling. Decompile or how to reduce Microsoft Access
MDB/MDE size and decrease start-up times
http://www.granite.ab.ca/access/decompile.htm
Also try the SaveAsText.
Corrupt Objects within a Corrupt Microsoft Access MDB
http://www.granite.ab.ca/access/corr...uptobjects.htm
The little documented SaveAsText and LoadFromText may help if an
object is corrupted or otherwise behaving weirdly.
At the debug/immediate window type:
Application.SaveAsText acForm,"MyForm","c:\form.txt
You can load the file into a new MDB.
Application.LoadFromText acForm,"MyForm","c:\from.txt"
Sample code at
http://www.datastrat.com/Code/DocDatabase.txt for
saving all objects in an MDB.
>Has the form been corrupted to the point of not being recoverable?
Quite possibly. I have this happen to me as well.
>Is it
>unusual that the form name still appears in the list of forms?
No, quite typical actually.
>I shouldn't have to File-Save after
>every second or third modification, but apparently that is what it has come
>to.
As John Vinson states I do that very frequently as well as compiling
the code every few lines.
And I don't compile or save while code is in debug mode.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog -
http://msmvps.com/blogs/access/