Solved

Accessing Notes Databases via VB

Posted on 2000-03-06
2
164 Views
Last Modified: 2013-12-18
I'm having trouble accessing a Notes Database that's on my server, via Visual Basic. I'm sure it's a simple syntax thing, since I have no such problem when the database is in the default directory (Notes/Data) on the Local server. Here's the code:

Dim session As Object, db As Object, view As Object

Set session = CreateObject("Notes.NotesSession")
Set db = session.GETDATABASE("", "Benefit.nsf")
Set view = db.GetView("EmpSS")

This works great since it's the Local server. When I try to go to my server, I get an error trying to set the view, saying the database isn't open. Please let me know what the syntax should be for:

Server = "HUDSON/HudsonGeneral"
Database = "Notes/Data/Apps/Benefit.nsf"

I've tried many variations of the server name & database path, but with no luck.

Thanx
0
Comment
Question by:Raybone
2 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 50 total points
ID: 2589900
Hi

Use
Server = "HUDSON/HudsonGeneral"
Database = "apps\\benefit.nsf"

As in Database you no need to enter the data directory, by default it searches data directory.

Good Luck
~Hemanth
0
 

Author Comment

by:Raybone
ID: 2597104
Thanks,

I had tried:

Server = "HUDSON/HudsonGeneral"
Database = "apps\Benefits.nsf"

That extra \ did the trick!!!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now