Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Microsoft Access konnte keine MDE-Datenbank erstellen.

56 views
Skip to first unread message

Andreas Liskes

unread,
Dec 20, 2000, 11:55:16 AM12/20/00
to
Hi all,

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


Urs Scheidegger

unread,
Dec 20, 2000, 12:10:12 PM12/20/00
to

Hi 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...

Gunold Brunbauer

unread,
Dec 21, 2000, 5:10:49 AM12/21/00
to
Hallo Andreas,
ich vermute, du hast einen Syntaxfehler in irgendeinem Modul. Dieser Fehler
tritt bei normaler (unkompilierter) Benutzung nur auf, wenn du das
entsprechende Feature benutzt. Beim Erstellen der mde-Datei fällt er auf, da
Access nun alles kompiliert.
Abhilfe:
Öfnne irgendein Modul im Entwurfsmodus und wähle: Alles kompilieren, dann
zeigt dir Access die Stelle an, die nicht kompiliert werden kann.
Gruß Gunold

--
+ ------------------ Fotos sind Kunstwerke ! ---------------+
www.bilderstroeme.de

"Andreas Liskes" <lis...@c-s.de> schrieb im Newsbeitrag
news:ht506.1$8O6...@news.ecrc.de...

Andreas Schmidt

unread,
Dec 23, 2000, 11:24:56 AM12/23/00
to
Hallo Andreas,

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...

0 new messages