Hi there,
in a form I want to use as a lookup-form I have a problem with the seek-method, which does not seem to work.
On the form, the BO "LieferöookupBO' is filled in the parentformloading-event.
The calling form, which activates the lookup-form, send a search-parameter, which is
assigned to a private form-var. In the Load-Event I tried my seek-implementation:
If cSuche.Length > 0 Then
Dim lRet As Boolean
MsgBox("Count: " & LieferBO1.Count.ToString) ' Just testing, if the BO is filled. It is.
lRet = LieferLookupBo.Seek("adresse='CLA'") ' Hardcoded just fpr testing purposes.
If lRet Then
MsgBox("Found: " & LieferBO1.ADRESSE) ' Has not moved the current row index, not showing "CLA"
Else
MsgBox("Nothing")
End If
The search happens on a table containing lookup-codes like:
ASAP
AVA
BM
CLA
Now what happens is, that seek returns True, as if if has found "CLA" but the current row index has not changed (as described in the help-file) as the "ADRESSE"-property of the BO is showing the first code in the table "ASAP".
Can anybody tell me. what is going wrong there.
Best regards
Thomas