Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

PostOpen Database Opening a new db.

Posted on 2009-04-06
2
Medium Priority
?
637 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
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.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

926 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