Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext


oct breeze 12.May.08 11:09 PM a Web browser
Domino Designer 6.0.5 Windows XP


I encounter the error msg:
"Database MOEA003!!\project\zs\sars.nsf has not been open yet" when i running the following code in the agent,
i want to get the database in another server,
server name is :MOE003/MOE/A
path is :project\zs\sars.nsf

Any help will be greatly appreciated.

Sub Initialize

'One time loading of school information from SARS database


Dim db As Notesdatabase
Dim Session As New NotesSession
Dim view As NotesView
Dim doc As NotesDocument
Dim itemAuthor As NotesItem, itemReader As NotesItem

Set db = Session.currentdatabase
Set view = db.GetView( "vwSchList" )

'For SchoolInfo form in Sars db
Dim SARSdb As notesdatabase
Dim SARSview As notesView
Dim SARSdoc As NotesDocument
Dim key As String
Dim counter As Integer


Set SARSdb = session.GetDatabase ("MOE003", "\project\zs\sars.nsf")

Set SARSview= SARSdb.GetView( "vSchoolInfoLkup" )
Set SARSdoc = SARSview.GetFirstDocument
counter = 0

'Loading starts
While Not ( SARSdoc Is Nothing )
counter = counter + 1
key = SARSdoc.Schcode(0)
Set doc = view.GetDocumentByKey( key , True )
'if school info doc does not exist
If ( doc Is Nothing) Then
Set doc = New NotesDocument ( db )
doc.Form = "SchList"
doc.SchoolCode = key
End If

'Update info if school info doc already exists
doc.SchoolName = SARSdoc.SchName(0)

Call doc.save( True, True )

Set SARSdoc = SARSview.GetNextDocument( SARSdoc )
Print "Counter : " & Cstr(counter)
Wend

Msgbox "Loading of school code and name has completed." , MB_OK, "Information"

End Sub






Database has not been open yet (oct breeze 12.May.08)
. . RE: Database has not been open yet (Stan Rogers 13.May.08)
. . . . RE: Database has not been open yet (oct breeze 13.May.08)
. . RE: Database has not been open yet (tamal das 13.May.08)
. . RE: Database has not been open yet (Guru T 13.May.08)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

Resources

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds

Wikis

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums


 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow