Das Notes Forum

Domino 9 und frühere Versionen => ND8: Entwicklung => Thema gestartet von: watschn am 28.08.08 - 10:06:33

Titel: Notes DB öffnen über MS Access VBA
Beitrag von: watschn am 28.08.08 - 10:06:33
Hallo,

ich hoffe das ist hier das richtige Forum für meine Frage. Ich suche nach einer Möglichkeit, eine Lotus Notes Datenbank über MS Access (VBA) zu öffnen. Der User soll in der Access Datenbank durch Klick auf einen Button eine bestimmte Notes DB öffnen können. Mehr soll nicht sein, kein Datenaustausch oder dergleichen...

Hat irgendwer ne Idee?

Gruß,
Michael
Titel: Re: Notes DB öffnen über MS Access VBA
Beitrag von: m3 am 28.08.08 - 10:12:13
ODBC-Treiber?
Titel: Re: Notes DB öffnen über MS Access VBA
Beitrag von: Hive am 28.08.08 - 10:14:12
Das hört sich klassisch nach einem Entwickler-Problem an!

Ansonsten funktioniert das bei ensprechend importierter Klasse ganz normal:

Set LNSession = CreateObject("Notes.NotesSession")
Set LNWorkspace = CreateObject("Notes.NotesUIWorkspace")
LNMailServer = LNSession.GETENVIRONMENTSTRING("MailServer", True)
LNMailDBName = LNSession.GETENVIRONMENTSTRING("MailFile", True)
LNUserName = LNSession.UserName

wobei LNSession und LNWorkspace Methoden und Eigenschaften analog der LS-Referenz haben. (-> LNSession.openDatabase)

MfG Kai

Titel: Re: Notes DB öffnen über MS Access VBA
Beitrag von: m3 am 28.08.08 - 10:31:50
Zitat
eine bestimmte Notes DB öffnen
Im Abszess- oder im Notes-Client?
Titel: Re: Notes DB öffnen über MS Access VBA
Beitrag von: watschn am 28.08.08 - 11:04:31
@ m3
die DB soll im Notes Client geöffnet werden, ich gehe davon aus dass Notes gestartet ist
Titel: Re: Notes DB öffnen über MS Access VBA
Beitrag von: m3 am 28.08.08 - 11:09:23
Na dann einfach als Link z.b. Notes://.... - siehe Designer-HIlfe und Forumssuche.
Titel: Re: Notes DB öffnen über MS Access VBA
Beitrag von: watschn am 28.08.08 - 11:49:18
Ok der Link über Notes:// funktioniert grundsätzlich

Aber wie kann ich auf eine Notes DB zugreifen, die sich nicht im Hauptverzeichnis sondern in einem Unterordner befindet?
Ich bekomme trotz Angabe des Pfades immer die Meldung "Datei nicht vorhanden"
Titel: Re: Notes DB öffnen über MS Access VBA
Beitrag von: m3 am 28.08.08 - 11:56:55
Zitat
The general forms of URLs that address Domino objects are as follows:
protocol://host/database?OpenDatabase
protocol://host/database /view?OpenView
protocol://host/database /form?OpenForm
protocol://host/database /document?OpenDocument
protocol://host/database /agent?OpenAgent
For local calls, the protocol is "notes" and the host is empty so that the URL starts with "notes:///" ("notes," colon, and three slashes).
The database can be specified by name or replica ID. The name can include spaces (you can substitute plus signs for the spaces but it is not necessary). The name need not include the type suffix if it is NSF. The replica ID can be specified as the 16-digit ID by itself or the 16-digit ID prefixed by two underscores and suffixed by the file type (for example, NSF).
Titel: Re: Notes DB öffnen über MS Access VBA
Beitrag von: watschn am 28.08.08 - 14:05:21
Also mit protocol://... funktionierts nicht. Da wird versucht die URL übers Internet zu öffnen.

Mit  Notes:// und ewig rumprobieren funktionierts jetzt aber.

Danke und Gruß,

Michael
Titel: Re: Notes DB öffnen über MS Access VBA
Beitrag von: koehlerbv am 28.08.08 - 14:08:39
Äh, Notes:// ist eines der möglichen Protokolle ...

Bernhard