Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading All Documents from AddressBook - HELP!!!

Status
Not open for further replies.

Technos

Programmer
Mar 15, 2002
47
US
Hi experts,
Right now I'm reading First document from Notes and displaying it in the combo box. Now I need to read all documents and then display it. Can somebody help ???

My code is:


Code:
Private Sub Form_Load()

Dim domSession As New Domino.NotesSession
Dim domDatabase As New Domino.NotesDatabase

Dim domDocument As NotesDocument
Dim domViewEntry As NotesViewEntry
Dim domView As NotesView
Dim domViewNav As New NotesViewNavigator
Dim strName As String

domSession.Initialize

Set domDatabase = domSession.GetDatabase("ho1xy4", _
    "names.nsf")
    
Set domView = domDatabase.GetView("people")
' This view contains the list of names
Set domViewNav = domView.CreateViewNav

Set domViewEntry = domCollection.GetFirstDocument()
Set domDocument = domViewEntry.Document

strName = domDocument.GetItemValue("FullName")(1)

cboName.AddItem strName

Set domViewEntry = Nothing
Set domViewNav = Nothing
Set domView = Nothing
Set domDocument = Nothing
Set domDatabase = Nothing
Set domSession = Nothing

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top