Hi all!
I'm currently trying to provide my users a connection to a Lotus Notes database after they click on a button. I have searched the forum and there is a lot of information concerning the mail file, but nothing about a separate database. The name of the database I'm trying to connect to is "CASE\casepackage.nsf". I've written the following code based on what I've seen on the forum but it's not working.
I'd appreciate any help!
I'm currently trying to provide my users a connection to a Lotus Notes database after they click on a button. I have searched the forum and there is a lot of information concerning the mail file, but nothing about a separate database. The name of the database I'm trying to connect to is "CASE\casepackage.nsf". I've written the following code based on what I've seen on the forum but it's not working.
Code:
Private Sub CasePackage_Button_Click()
Dim db As Object 'The CasePackage database
Dim DbName As String 'CasePackage name
Dim Session As Object 'The notes session
'Start a session to notes
Set Session = CreateObject("Notes.NotesSession")
DbName = "CASE\casepackage.nsf"
'Open the database in notes
Set db = Session.GetDatabase("", DbName)
If db.IsOpen = True Then
'Already open
Else
db.Open
End If
End Sub
I'd appreciate any help!