Named Product Object does not exist

I get this error when I try to open a database.

My code:

Set dbMail = session.GetDatabase( “Logheimtan_1”, strMail )

what could be the problem?

Subject: Do you have a session dimmed?

Since I’m not sure of your entire code, do you have the following somewhere above the statement?

Dim session As New NotesSession

I suggest you also always use Option Declare (or Option Explicit) to ensure you’re not using a variant in place of an intended object.

HTH

Subject: And if you have an error, then of course post the error!!