Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LotusScript Type Mismatch

Status
Not open for further replies.

fishkake

MIS
Feb 11, 2004
130
GB
Why doesn't this work?!!

dim ndc as NotesDocumentCollection
searchFormula$ = {Form = "Region"}
Set ndc = db.search(searchFormula$, 0)

db.search should return a notesdocumentcolletion, and ndc is a notesdocumentcollection - I practically copied this out of the example in the help file, so why won't it work!?

I have very little hair or cigarettes left by now...
 
I solved this. It was a syntax error - it needs to be:

Set ndc = db.Search(searchformula$, Nothing, 0)

Just thought I'd update in case anybody shares my incompetence...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top