Getting all docs that match criteria in script

I am trying to get all docs in the database w/ Form = something. Please help. in Script

Subject: getting all docs that match criteria in script

Another way to get all documents is to use the db.search method.

Dim session as new notessession

dim db as notesdatabase

dim dc as notesdocumentcollection

dim dt as new notesdatetime()

dim sFormula as string

set db = session.currentdatabase

sFormula = "form = ‘formname’ "

set dc. db.search(sFormula,dt,0)

This will return a collection of all the documents that meet your criter in the sFormula field. The sformula field can look like any view formula selection criteria.

Subject: getting all docs that match criteria in script

you can create a view to list all the documents created with the required form and access the results using GetFirstDocument & GetNextDocument logic.

cheers !!

Ashish