Hi:
You are probably not padding your variables.
Try,
LOCAL lcName,lcLastName,lcExpr
lcName = PADR(lcName,FSIZE("NAME","MyTable"))
lcLastName = PADR(lcLastName,FSIZE("LASTNAME","MyTable"))
lcExpr = lcName+lcLastName
IF SEEK(lcExpr,"MyTable","MyIndexTag")
WAIT WINDOW "FOUND"
ELSE
WAIT WINDOW "NOT FOUND"
ENDIF
HTH,
--Paul
>Hi alls
>I have a simple table.
>It has three fields: Name, Last Name and DNI and three common index; one with name other with last name and one with name+last name.
>
>When I make the search for name, It´s Ok.
>When I make the search for last name. It´s Ok.
>
>... But when I choice the compound index (name+lastname) and make a search it doesn´t work.
>
>What could be happening..???
>
>I consider the spaces mades for the texbox, for it I use Alltrim().
>
>TIA