Getalldocumentsbykey and number

My question is, what if I have 2 keys by they are numbers.

I want to use get all documentsbykey to show all docs that are between the two keys ( the two numbers ).

I’ve seen examples for between dates but not numbers?

Is this even possible? Maybe I’m going at this the wrong way. I’m looking for some examples but I’ve only found this post. Thanks for any help!

http://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/8a0d756530b959f485256bbb003547ea?OpenDocument

Subject: getalldocumentsbykey and number

If you are refering that you have two explicit keys and you want a collection of the docs for those keys then notesdocumentcollection can help you.

Either create a loop or code which will first get all the document by key using the first number key and put that into a document collection.Again use getdocument by key for the second key and put the docs into the same collection which contains the docs collection of the first key.Now you have the all the docs matching both the key in a single notesdocumentcollection.Now its up to to play with the collection.

Subject: RE: getalldocumentsbykey and number

I need to get all documents > key1 and all docs <key2. So all docs in between the 2 numbers.

Thanks!

Subject: RE: getalldocumentsbykey and number

Then why dont you got for db.search.This would help you search documents on the basis of search criteria.

Subject: RE: getalldocumentsbykey and number

Ok, I’ll look into that. Thanks.