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  >  IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

IBM Lotus Notes/Domino 8.5 Forum (includes Lotus Notes Traveler)

Sign in to participate Previous Next
Subject: Error while extracting Mailfile Details
Feedback Type: Problem
Product Area: Domino Designer on Eclipse (DDE)
Technical Area: Application Development
Platform: Windows
Release: 8.5.2
Reproducible: Always

Dear All,

Writing a script to extract Quota, Warning, Size for all the users in the address book. Getting error "Object Variable not set" after "Set db1 = s.CurrentDatabase" i.e., when trying to get quota.

Will be greatful if some one helps!..

Sub Initialize
Dim ws As NotesUIWorkspace
Dim s As NotesSession
Dim db, db1 As NotesDatabase
Dim view As NotesView
Dim vc As NotesViewEntryCollection
Dim nav As NotesViewNavigator
Dim entry As NotesViewEntry
Dim doc As notesdocument
Dim mserver As variant
Dim mname As variant
Dim Quota As Long
Dim Warning As Long
Dim Size As Long


Set db = New NotesDatabase ("Hub/Wipro", "names.nsf")
Set view = db.Getview("People")
Set nav = view.CreateViewNav
Set entry = nav.GetFirstDocument

While Not (entry Is Nothing)
Set doc = entry.Document
mserver=doc.GetItemValue("MailServer")
mname=doc.GetItemValue("MailFile")
Set db = s.GetDatabase( mserver(0), mname(0) )
Set db1 = s.CurrentDatabase
Quota = db.SizeQuota\1024
Warning = db.SizeWarning\1024
size=(db.size \ 1024) \ 1024
MsgBox "MailBox Quota is" &Quota
MsgBox "MailBox Warning is" &Warning
MsgBox "MailBox Size is" &size
Set entry = vc.GetNextEntry(entry)
Wend
End Sub


Feedback number WEBB8U9ABM created by Meena Ramesh on 05/13/2012

Status: Open
Comments:

Error while extracting Mailfile Det... (Meena Ramesh 13.May.12)
. . multiple usage of object db (Watka Naidoo 13.May.12)
. . . . Error while extracting mailfiles (Meena Ramesh 15.May.12)




Printer-friendly

Search this forum


Sign In or Register

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

Member Tools


RSS Feeds

 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