Db.search syntax

I’d like to create a collection of doc using DB.search formula in lotus script . I am able to use this selection criteria in the view and retrive all docs that satisfy this condition. I am using the following script. Is my syntax correct?

searchFormula={@IsAvailable(Field1)&@IsAvailable(Field2)&field2!=““Error””}

Set coll=db.search(searchFormula,nothing,0)

Subject: remove double quotes …

““Error””

Subject: re: db.search syntax

I think you need quotes around the field names.