H
hewett_nick
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
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