Restrict FTSearch to Doc and Responses

I’m doing a FTSearch from the ND6.5 client. It’s working fine, but I want to restrict the search to a particular form and all responses to that form. There are four different response forms. Can anyone help me with the syntax to do this?

Here’s what I’m using to restrict the search to one form;

searchFormula$ = {Form = “ApprovalForm” }

Set dc = db.Search( searchFormula$, Nothing, 0 )

Subject: Restrict FTSearch to Doc and Responses

There may be better ways of doing, but I use this syntax and it works:

Set collection = db.Search("Form = ““YourFormName”” ", Nothing, 0)

Subject: Restrict FTSearch to Doc and Responses

Got it;

searchFormula$ = {Form = “ApprovalForm” | Form = “ApproveComment Form” | Form = “RejectComment Form” | Form = “Comment Form”}

Set dc = db.Search( searchFormula$, Nothing, 0 )