Solved

Accessing Notes Databases via VB

Posted on 2000-03-06
2
171 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
[X]
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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

695 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