Steve Jorgensen <nospam@nospam.nospam> wrote in
news:4bfe51lji5b5lb52qo35ffptcdj5p36ioe@4ax.com:
[color=blue]
> On Fri, 08 Apr 2005 19:10:46 GMT, "David W. Fenton"
><dXXXfenton@bway.net.invalid> wrote:
>[color=green]
>>Steve Jorgensen <nospam@nospam.nospam> wrote in
>>news:66cc5110h2608kme4v9b5h3bmjja5ga9pt@4ax.co m:
>>[color=darkred]
>>> On 8 Apr 2005 00:05:46 -0700, "Rog" <roger_delahaye@hotmail.com>
>>> wrote:
>>>
>>>>3 options:
>>>>- Tools/Database utilities/Repair database - but I guess you
>>>>already tried that.
>>>>- Decompile: start Access with the decompile switch, e.g.
>>>>"C:\Program Files\Microsoft Office\Office\MSACCESS.EXE"
>>>>/decompile then open the database and recompile it.
>>>>- If that doesn't work, create a new database and import
>>>>everything.
>>>
>>> When decompile doesn't work, importing objects doesn't usually
>>> work either. The corruption either prevents importing or results
>>> in the corruption being imported with the objects.
>>>
>>> If the import works at all, though, it can sometimes help to
>>> import the objects, then imediately do a decompile. Even then,
>>> it's likely you'll need to delete all or many of the modules,
>>> and re-create them by pasting the text back in, or the
>>> corruption will reappear after the next compact.[/color]
>>
>>If it's the VB dll error, it's hosed and unrecoverable, no?
>>
>>In any event, you should at least try SaveAsText, which will show
>>you if the code is actually still there or not. I recently saved a
>>form where the VBA code window wouldn't open, but SaveAsText could
>>still extract the code.[/color]
>
> It can be a mighty struggle sometimes, but I can't remember a time
> I wasn't able to recover all but one or 2 code modules if I had
> to. Of course, the recovery may not be worth the hassle,
> particularly if good backups have been done (obviously, I've
> worked with some people who didn't do that).[/color]
Well, it depends on how recent your backups are. Losing 4 hours of
work is not as bad as losing the whole project, but it's still a
pretty severe problem.
In the case I was alluding to, it was a new form with newly-written
code, and there was no backup (it corrupted in the same session in
which it was created). It was complex enough that it was worth doing
some extra work to try to recover, though it wouldn't have been a
huge problem to recreate from scratch.
--
David W. Fenton
http://www.bway.net/~dfenton
dfenton at bway dot net
http://www.bway.net/~dfassoc