wieder mal was nettes zum grübeln...
Unter Access 2000 auf NT4 u. Windows 2000 kann eine Datenbank mit Tabellen,
Formularen und VBA kann nicht mehr in eine MDE umgewandelt werden - es
erscheint obige Fehlermeldung!
Spaßigerweise hat das mit dieser Datenbank eigentlich immer geklappt, nur
jetzt nicht mehr...
Irgendwelche Hinweise?
Herzlichen Dank aus Essen,
Andreas
Versuch zuerst mal den Code aus einem VBA-Fenster zu compilieren. Dann
erscheint meistens der Verursacher mit einer vernünftigen Fehlermeldung.
Wenn nicht, dann neue DB anlegen und alles importieren. Hat bei mir schon
Wunder bewirkt.
Es kann auch sein, dass Du einen Befehl hast, wie: set db ...
Ersetzte den durch die Workspace-Funktion. Hatte damit auch schon Probleme
mit der MDE (warum auch immer, scheint manchmal undurchsichtig und
eigenwillig)
HTH
Urs
Andreas Liskes <lis...@c-s.de> a écrit dans le message :
ht506.1$8O6...@news.ecrc.de...
--
+ ------------------ Fotos sind Kunstwerke ! ---------------+
www.bilderstroeme.de
"Andreas Liskes" <lis...@c-s.de> schrieb im Newsbeitrag
news:ht506.1$8O6...@news.ecrc.de...
hatte dieses problem erst gestern, aber nur auf meinem Rechner.
Auslöser war das Statement set db1=opendatabase("Name")
mit set db1=DBEngine.Opendatabase("Name") ging es.
bei dev gibts einen Artikel, der mir weiterholf.
Gruss Andreas
Bugs: Compile Error in Hidden Module
----------------------------------------------------------------------------
----
This strange problem seems to have different origins and multiple
solutions. Some of the cases where I've seen (not personally) this error
message come up:
only on one machine with, but not on another, when issuing a "Compile and
Save All Modules"
only on one machine with, but not on another, when opening a particular
form, while a recompile works.
when making MDE files from the UI (most common)
only under runtime environment (not on development machine) or using
/runtime option (second most common)
in Autoexec macro on a Access 2 -> 97 database
in replicated databases using /runtime option.
The complete message is:
A protected module can't be displayed. This error has the following cause
and solution:
There is a compilation error in the code of the specified module, but it
can't be displayed because the project is protected. Unprotect the project,
and then run the code again to view the error.
There have been several alternatives suggested, all of them have worked
in one or more cases. I can only suggest going through each item
suggested here till one of them fixes the problem.
If you have a subroutine or function named the same as a module, rename one
of them and try again.
Decompile the database, and then import all the objects into a new database.
If the database is a converted Access 97 from version 2.0, uncheck DAO
2.5/3.5 Compatibility Library and select DAO 3.5x Library instead.
Recompile
the database.
In few cases, this was caused by Missing References.
If you're using DAO methods such as CreateWorkspace, OpenDatabase,
CommitTrans etc., for example, DBEngine.CreateWorkspace,
DBEngine.OpenDatabase,
Workspaces(0).CommitTrans.
Andreas Liskes <lis...@c-s.de> schrieb in im Newsbeitrag:
ht506.1$8O6...@news.ecrc.de...