LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to comp.groupware.lotus-notes.programmer,microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Retrieve Documents Within Date Range using VB/VBA

Dear contributors,

I apologise if there is a more appropriate group for this query - I can
see relatively few Notes related posts in the VB/VBA groups and
vice-versa.

Currently I have an Excel VBA application that will retrieve all
documents from a Lotus Domino database created after a certain date by
passing a date to the search request in the following way...

Private Sub GetNotesData(crDate1 As String)
Dim LNdate As NotesDateTime
Dim LNdocs As NotesDocumentCollection
Dim LNdoc As NotesDocument

With Application
.StatusBar = "Retrieving recordset from " & SRVR & ":\\" &
DBASE & " - Please be patient..."
.DisplayAlerts = False
End With

' Set the time
Set LNdate = LNsession.CreateDateTime(CDate(crDate1))

' Do the search
Set LNdocs = LNdb.Search(SELEQT, LNdate, 0)

'
'
' Etc.

Is it possible to reduce the recordset (and therefore the horrendously
slow retrieval times) by also passing it a second date, before which
documents were created?

In fact, is there an alternative/better method to use than
CreateDateTime? Currently the session is returning some documents that
were created before crDate1 as though CreateDateTime is possibly the
date and time the document was moved to the particular server/disk it
is being read from.

Br, NickH

 
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
Retrieve last non zero value in a range of cells Pete[_5_] New Users to Excel 2 June 10th 11 08:57 PM
How to retrieve Named Range name? Guntars Excel Worksheet Functions 3 June 8th 09 03:06 AM
Retrieve value from a range of cells EMoe Excel Worksheet Functions 3 June 19th 06 07:02 PM
Retrieve individual cells from a range changed between a range baldomero[_4_] Excel Programming 3 September 5th 05 07:31 PM
How to retrieve range in formula? deko Excel Programming 10 January 14th 05 07:22 PM


All times are GMT +1. The time now is 01:25 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"