On Jul 15 2004, 08:31 am, "Nick Stansbury" <nickDOTstansbury@sage-
partners.com> wrote in news:cd5t47$e4u$1@phys-news-1.nl.colt.net:
[color=blue]
>[color=green]
>> Did you try SaveAsText? If that fails, which I think is likely, try
>> pksolutions.com.[/color]
>
> SaveAsText? Not being an access guy I'm a bit lost - how can I run any vb
> routines without being able to get into the VB editor?[/color]
Can you get into the Debug window? Try Ctrl+G. If that works, in the Debug
window type
Application.SaveAsText acForm, "formname", "path_to_file"
If that works, repeat for all modules in the database, then load them into
a new database using LoadFromText with similar syntax.
In fact, you may try the Objects as Text add-in from
http://www.users.cloud9.net/~dfurman/code.htm, which provides a GUI for the
above.
If you cannot get into the Debug window, then another option would be to
open the database in an instance of Access via automation and use
SaveAsText on that instance, to avoid loading the corrupt project in the
VBE. Post back if you need details on how to do that.
As Tony said, decompile is worth a try too.
--
remove a 9 to reply by email