Hi,
Make sure that is at least ONE record matched in your query.
SELECT MAX(myField) FROM (ALIAS()) INTO ARRAY laArray
IF _TALLY > 0
THISFORM.txt.Value = laArray + 1
ENDIF
HTH
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...