From: Francois Lafont on
Le 10/09/2010 23:26, James Whitlow wrote :

> Try adding the line:
>
> objCommand.Properties("Page Size") = 999
>
> ...right after the 'objCommand.ActiveConnection = objConnection' line:


Great ! It works. Thanks a lot. :-)

But, I have 2 questions :

1) Is it possible to have some explanations of the "Page Size" property
? I have not understood the little pieces that I have found on the Web.
For example, if I replace "999" by "1", the script works too. Why ?

2) With your line (objCommand.Properties("Page Size") = 999), do I have
the absolute guarantee on the fact that the .find method will tell me
systematically the truth ?


--
Fran�ois Lafont




From: James Whitlow on
"Francois Lafont" <francois(a)nospam.invalid> wrote in message
news:eEIUBdTULHA.4344(a)TK2MSFTNGP02.phx.gbl...
> Le 10/09/2010 23:26, James Whitlow wrote :
>
>> Try adding the line:
>>
>> objCommand.Properties("Page Size") = 999
>>
>> ...right after the 'objCommand.ActiveConnection = objConnection' line:
>
>
> Great ! It works. Thanks a lot. :-)
>
> But, I have 2 questions :
>
> 1) Is it possible to have some explanations of the "Page Size" property
> ? I have not understood the little pieces that I have found on the Web.
> For example, if I replace "999" by "1", the script works too. Why ?
>
> 2) With your line (objCommand.Properties("Page Size") = 999), do I have
> the absolute guarantee on the fact that the .find method will tell me
> systematically the truth ?

1) Hopefully Richard Mueller will chime in. He has a lot better
understanding on this subject that I do. It has been my experience that if
you don't set the page size (leave it at the default) or set it to a value
at or above the default record size that AD is configured to (normally
1000), it will return a recordset of that size. If you set it to anything
below the default, it will return all records.

2) I never like to deal in absolutes (been burned too many times), but I
think it very likely that it will always work as expected.


From: Al Dunbar on


"James Whitlow" <jwhitlow.60372693(a)bloglines.com> wrote in message
news:#4m44FVULHA.4880(a)TK2MSFTNGP06.phx.gbl...
> "Francois Lafont" <francois(a)nospam.invalid> wrote in message
> news:eEIUBdTULHA.4344(a)TK2MSFTNGP02.phx.gbl...
>> Le 10/09/2010 23:26, James Whitlow wrote :
>>
>>> Try adding the line:
>>>
>>> objCommand.Properties("Page Size") = 999
>>>
>>> ...right after the 'objCommand.ActiveConnection = objConnection' line:
>>
>>
>> Great ! It works. Thanks a lot. :-)
>>
>> But, I have 2 questions :
>>
>> 1) Is it possible to have some explanations of the "Page Size" property
>> ? I have not understood the little pieces that I have found on the Web.
>> For example, if I replace "999" by "1", the script works too. Why ?
>>
>> 2) With your line (objCommand.Properties("Page Size") = 999), do I have
>> the absolute guarantee on the fact that the .find method will tell me
>> systematically the truth ?
>
> 1) Hopefully Richard Mueller will chime in. He has a lot better
> understanding on this subject that I do.

I haven't seen him here for a while, so perhaps he has "left the building"
as they say. You might find some useful info on his website at:

http://www.rlmueller.net/freecode6.htm

/Al

> It has been my experience that if you don't set the page size (leave it
> at the default) or set it to a value at or above the default record size
> that AD is configured to (normally 1000), it will return a recordset of
> that size. If you set it to anything below the default, it will return all
> records.
>
> 2) I never like to deal in absolutes (been burned too many times), but I
> think it very likely that it will always work as expected.
>
>