Launch a otus Notes Database from Access using vb

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.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
simpsopAuthor Commented:

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


It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.