Solved

PostOpen Database Opening a new db.

Posted on 2009-04-06
2
626 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

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…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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

21 Experts available now in Live!

Get 1:1 Help Now