I use the following code to search within another DB using the ID filed (a number field)
Set dbB=New notesdatabase (dbA.server,path$ + "a_doc.nsf")
Set view=dbB.getview("(DOCS)")
Set target=view.getdocumentbykey(L(i),True)
If Not (target Is Nothing) Then
Set uidoc = ws.EditDocument( False, target )
Else
Messagebox("The doc doesn't exist or can't be accessed !")
End If
the view (Docs) located in the a_doc.nsf DB contains just a single sorted column (ID) for the GetAllDocumentsByKey method to work.
When I try to find a doc that exist in the second DB (a_doc.nsf), I receive the above script message (The doc doesn't exist or can't be ...) even it exist ! ???
where is the mistake ?
10x