LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Code to open Notes database and find a specific doc

Briefly stated..code to open Notes database and find a specific doc...cant
iterate through all there are 166,000 of them
my code as is below.... ndoc comes back as a long i believe a Notesentry
key...so where do i go from here ???

' set up variables ...
Dim Domdb As NotesDatabase 'database contaiing
names/groups
Dim nsdc As NotesDocumentCollection 'doc collection returned
from query
Dim ndoc As NotesDocument 'notes doc
Dim ndoc1 As NotesDocument 'notes doc
Dim varColNames As Variant 'for col val and column
name arrays
Dim varColVals As Variant

' open a session ...
Set Session = CreateObject("Lotus.NotesSession")
Call Session.Initialize

' get the database we are looking at from drop down ...
strmisc = Trim(Me.cbDatabaseList.Value)

Set Domdb = Session.GetDatabase(Me.txtNamesServer, Me.txtNamesFile)

' check if open
If (Not Domdb.IsOpen) Then
strmisc = "The names database: used to identfy indiviual in groups could not
be opened"
MsgBox strmisc, vbInformation, "Error Opening names Database"
End If

' look up the first group ...
Set nsdc = Domdb.FTSearch("GAD-WP Admin", 0)
Set ndoc = nsdc.GetFirstDocument

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open a specific workbook...find value from other open workbook and then insert cells values in cell next to it. [email protected] Excel Programming 1 May 13th 07 01:46 PM
database to Find customer by zip code fjfino Excel Discussion (Misc queries) 0 August 29th 06 09:00 PM
how can i find a specific date of a database reneabesmer Excel Discussion (Misc queries) 16 August 16th 05 11:45 PM
VBA code to open a specific worksheet MohK Excel Programming 2 October 29th 03 06:02 PM
Post file to Notes database dculve Excel Programming 0 September 11th 03 03:19 PM


All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"