Responses collection

I am having a problem getting a collection of responses.

I am running the following code in a button on a document that has known responses. I verified the response documnents exist. The strange thing is that the code works in the NTF template file but not in the NSF file. The collection always comes back empty in the NSF file. Anyone ever ran into this before?

'set uidoc, doc and user name

Set uidoc = workspace.CurrentDocument

Set uidoc = workspace.EditDocument(True)

Set doc = uidoc.Document	



'set response docs and collection

Set collection = doc.Responses

Set currentResponse = collection.GetFirstDocument

Subject: responses collection

Your code seems to be fine. I ran the above code in the same senario as you described and i am getting response count.May be it is a reader field problem?

Subject: responses collection

You may have the ‘Do not maintain specialized response hierarchy’ option set on the live database. The responses property is then not available and returns 0.