Problems with GetEntrybyKey method

Hello,

I am having problems with the method Getentrybykey of the NotesView class. I have to say, that i searched this Forum for a solution but none of the former postings descrives my problem.

i am using the following code in a hotspot button

…

Dim tsl as Notesviewentry

…

Set db = session.CurrentDatabase

Set view= db.GetView("bamaconflict")

Set tsl = view.GetEntryByKey("56112")

GetEntryByKey is not returning anything.

the view “bamaconflict” exists, an has a column which is indexed, this column is also the first column of the view. The document containing the key “56112” also exists. i really don’t know what i am doing wrong.

I already debugged the script with the lotus script debugger, but the only thing i see, is that i am not geting any value after calling GetEntrybyKey.

the Column in the view displays the value of a text Field.

TAI

Salvador

Subject: Problem solved

I still don’t know how this can be explained.The documents in the view were imported from a wk4 (lotus 123 ) worksheet. eventhough the Fields are declared as text in the form, they were saved as numbers, long or integer. if i make a lookup searching for a string “56111” it doesn’t work, but looking for a number works.

Salvador Rosales