Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Getting range of appointments (http://www.outlookbanter.com/outlook-vba/55649-getting-range-appointments.html)

DENNIS BROWN August 28th 07 02:29 PM

Getting range of appointments
 
I'm using the FindNext(sFilter) to get the appointments within a day, and it works with the date syntax of
sStartRange date of '8/28/2007 23:59'
and sEndRange date of '8/28/2007 00:00', but it returns nothing if I extend it past a single day, such as
'8/1/2007 23:59' and '8/31/2007 00:00'.
Am I doing something wrong with the date syntax when extending past a single day range?

--

Thanks,
Dennis

Dmitry Streblechenko August 28th 07 06:12 PM

Getting range of appointments
 
Your value of sStartRange is greater than yhe value of sEndRange.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"DENNIS BROWN" wrote in message . ..
I'm using the FindNext(sFilter) to get the appointments within a day, and it works with the date syntax of
sStartRange date of '8/28/2007 23:59'
and sEndRange date of '8/28/2007 00:00', but it returns nothing if I extend it past a single day, such as
'8/1/2007 23:59' and '8/31/2007 00:00'.
Am I doing something wrong with the date syntax when extending past a single day range?

--

Thanks,
Dennis

DENNIS BROWN August 28th 07 06:29 PM

Getting range of appointments
 
My complete line is
[Start] = '8/1/2007 23:59' AND [Start] = '8/31/2007 00:00'

Should it find it? It gets the entire day's appointments when I use
[Start] = '8/1/2007 23:59' AND [Start] = '8/1/2007 00:00'


--

Thanks,
Dennis
"Dmitry Streblechenko" wrote in message ...
Your value of sStartRange is greater than yhe value of sEndRange.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"DENNIS BROWN" wrote in message . ..
I'm using the FindNext(sFilter) to get the appointments within a day, and it works with the date syntax of
sStartRange date of '8/28/2007 23:59'
and sEndRange date of '8/28/2007 00:00', but it returns nothing if I extend it past a single day, such as
'8/1/2007 23:59' and '8/31/2007 00:00'.
Am I doing something wrong with the date syntax when extending past a single day range?

--

Thanks,
Dennis

Dmitry Streblechenko August 28th 07 07:45 PM

Getting range of appointments
 
No, the first one won't work - how can an appointment start before August 1 and at the same time start after August 31?
It should be

[Start] = '8/31/2007 23:59' AND [End] = '8/1/2007 00:00'

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"DENNIS BROWN" wrote in message . ..
My complete line is
[Start] = '8/1/2007 23:59' AND [Start] = '8/31/2007 00:00'

Should it find it? It gets the entire day's appointments when I use
[Start] = '8/1/2007 23:59' AND [Start] = '8/1/2007 00:00'


--

Thanks,
Dennis
"Dmitry Streblechenko" wrote in message ...
Your value of sStartRange is greater than yhe value of sEndRange.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"DENNIS BROWN" wrote in message . ..
I'm using the FindNext(sFilter) to get the appointments within a day, and it works with the date syntax of
sStartRange date of '8/28/2007 23:59'
and sEndRange date of '8/28/2007 00:00', but it returns nothing if I extend it past a single day, such as
'8/1/2007 23:59' and '8/31/2007 00:00'.
Am I doing something wrong with the date syntax when extending past a single day range?

--

Thanks,
Dennis

DENNIS BROWN August 28th 07 08:07 PM

Getting range of appointments
 
Thanks!

--

Thanks,
Dennis
"Dmitry Streblechenko" wrote in message ...
No, the first one won't work - how can an appointment start before August 1 and at the same time start after August 31?
It should be

[Start] = '8/31/2007 23:59' AND [End] = '8/1/2007 00:00'

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"DENNIS BROWN" wrote in message . ..
My complete line is
[Start] = '8/1/2007 23:59' AND [Start] = '8/31/2007 00:00'

Should it find it? It gets the entire day's appointments when I use
[Start] = '8/1/2007 23:59' AND [Start] = '8/1/2007 00:00'


--

Thanks,
Dennis
"Dmitry Streblechenko" wrote in message ...
Your value of sStartRange is greater than yhe value of sEndRange.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"DENNIS BROWN" wrote in message . ..
I'm using the FindNext(sFilter) to get the appointments within a day, and it works with the date syntax of
sStartRange date of '8/28/2007 23:59'
and sEndRange date of '8/28/2007 00:00', but it returns nothing if I extend it past a single day, such as
'8/1/2007 23:59' and '8/31/2007 00:00'.
Am I doing something wrong with the date syntax when extending past a single day range?

--

Thanks,
Dennis


All times are GMT +1. The time now is 10:00 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com