Solved

PostOpen Database Opening a new db.

Posted on 2009-04-06
2
631 Views
Last Modified: 2013-12-18
I have a code in PostOpen database that will open a new db then close the db that opened it. Problem is I cannot close the initial db.
Sub Postopen(Source As Notesuidatabase)
Dim workspace As New NotesUIWorkspace
Call workspace.OpenDatabase ( "ServerLive", "UsedDB.nsf" )
Call Source.Close
End Sub
0
Comment
Question by:aentice
2 Comments
 
LVL 22

Accepted Solution

by:
Bill-Hanson earned 500 total points
ID: 24080908
Call Source.Close before opening the other db and it will work...

Sub Postopen(Source As Notesuidatabase)
    Call Source.Close
    Dim workspace As New NotesUIWorkspace
    Call workspace.OpenDatabase ( "ServerLive", "UsedDB.nsf" )
End Sub
0
 

Author Closing Comment

by:aentice
ID: 31567204
Thanks! This made me feel stupid :-)
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

821 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