>hi,
>
>i try i get eror message (variable laarray is not found)
>
>SELECT MAX(billno) FROM mstr INTO ARRAY laArray
>THISFORM.TEXT1.VALUE = laArray + 1
>
>thanks.
That tends to indicate that there were no records returned by the query. Are you sure that the table/alias mstr has at least one record in it (someone else mentioned this, I think). If so, are all the records deleted and SET DELETED is ON????