What code is causing the "Record out of range" message?
When you requery() your view, check _tally() to see if there are any records in the result. Then handle an empty view by adding a blank record or leaving your grid/listbox/etc. empty.
HTH
Barbara
>Hi,
>
>I have this problem
>
>I have a Form based in a View, when i run the form i get this error
>'Record out of range', this is because i haven't records that match views criteria, and the form close.
>
>Can anyone tell me the way to pass this and run the form?
>
>Thank's in advance
>
>João Batista
>(jbinf@mail.telepac.pt)