The following code uses the contents of an Entryfield to perform an indexed search in a form’s rowset after each character is typed:

function LASTNAME_onKey(nChar, nPosition, bShift, bControl)

form.rowset.findKey( upper( this.value ) )