# Avoid Moving Through records

**URL:** <https://www.dynamicsuser.net/t/avoid-moving-through-records/9748>\
**Category:** Developers Forum\
**Created:** [February 28, 2005, 2:48pm UTC](https://www.dynamicsuser.net/t/avoid-moving-through-records/9748 "2005-02-28T14:48:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elena\_Staffolani](https://avatars.discourse-cdn.com/v4/letter/e/dc4da7/32.png) [@Elena\_Staffolani](https://www.dynamicsuser.net/u/Elena_Staffolani)\
**Post date:** [February 28, 2005, 2:48pm UTC](https://www.dynamicsuser.net/t/avoid-moving-through-records/9748/1 "2005-02-28T14:48:40Z")

</div>

Hi, I’m Elisa. I wrote this code in the OnQueryCloseForm trigger : IF NOT Conditions THEN EXIT FALSE; This avoids the user from closing the form unless the conditions aren’t satisfied, for example if some fields are to be filled in. Is there a way to obtain the same behavior when the user tries to move from one record to another ? That’s to say in the NextRecord and FindRecord triggers ? Thank you. Elisa.

---

<div class="post-metadata">

**Author:** ![Nelson](https://avatars.discourse-cdn.com/v4/letter/n/dec6dc/32.png) [@Nelson](https://www.dynamicsuser.net/u/Nelson)\
**Post date:** [February 28, 2005, 5:19pm UTC](https://www.dynamicsuser.net/t/avoid-moving-through-records/9748/2 "2005-02-28T17:19:35Z")

</div>

Please search the forum for Mandatory Fields. You will find a few solutions for your problem.
