Db.search

Hello All -

Can you tell me how to do this ?

qryStr = " Form=““FormName”” & FieldName=““Test&Test”” "

Set dc=db.Search (qryStr, Nothing, 0)

In the qryStr above the field value has an apersand and it is causing me problems. Any workarounds ? I cannot change the field value.

Thanks

Subject: Duplicate Post

http://www-10.lotus.com/ldd/46dom.nsf/DateAllFlatweb/5575a3dc74093cdb85256fa1005a9d49?OpenDocument

Subject: Test&Test

This code works for me in this database…Sub Click(Source As Button)

Dim s As New NotesSession

Dim db As NotesDatabase

Dim dc As NotesDocumentCollection

Set db = s.CurrentDatabase

qryStr = |Form = "ResponseToResponse" & Subject = "Test&Test <eom>"|

Set dc=db.Search (qryStr, Nothing, 0)

Msgbox "Count = " & dc.Count

End Sub

If you have a NotesClient you can test yourself