Launch a otus Notes Database from Access using vb

Posted on 2003-02-26
Medium Priority
Last Modified: 2013-12-18
Does anyone know how I can launch a Lotus Notes database from an MSAccess database using vb?

I have a production systems in Access, and another in Notes. The operators use a switchboard in Access to select their database & I'd like them to have a button that can launch Lotus Notes into a specified database.

Question by:simpsop
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8030291
Try something like this:

Dim session As Object
Dim db As Object
Set session = CreateObject("Notes.NotesSession")
Set db = session.GetDatabase("Server","Path")
Call db.Open()

Expert Comment

ID: 8032262
My best bet would be to create an .NDL file off the Notes database and execute it.  It will launch Notes and the specific database.

To create an NDL file,  Select the database from the workspace and File-Database-Copy as link

Paste this link in notepad and save this file with extension as .ndl

Whenever you launch this ndl file notes and specific database will be opened.


Accepted Solution

Gunsen earned 100 total points
ID: 8032865
Use VB to launch application like this:
Shell( "CMD /C START NOTES://server/view/key/docunid" )

The notes-link can be made generic (and is found on document properties below tab <+> on notes client).

So, if you know the document UNID (UniversalID), you can direct the user into the database document.
If you dont know the UNID it can be collected via VB, read it using Domino COM object, and make generic URL...

Notes URL Samples :

Database link:
Notes://server/<Database UNID>

View link:
Notes://server/<Database UNID>/<View UNID>
Notes://server/dbname.nsf/<View UNID>

Document link:
Notes://server/<Database UNID>/<View UNID>/<Document UNID>

You may also start program using correct windows association :

x = ShellExecute(0&, "open", "Notes://server/names.nsf", 0&, 0&, 0)
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Author Comment

ID: 8034426

Thanks VERY much, worked the first time! Highly flexible too with regard to db, views, docs choices.



Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question