문제
다음 중 Access 폼의 레코드 탐색 및 데이터 조작과 관련된 이벤트의 발생 순서가 가장 옳은 것은?
사용자가 폼에서 새 레코드로 이동하여 데이터를 입력하고 다른 레코드로 이동하는 경우
① Current → Enter → GotFocus → BeforeUpdate → AfterUpdate → Exit → LostFocus ② Enter → GotFocus → Current → BeforeUpdate → AfterUpdate → Exit → LostFocus ③ Current → GotFocus → Enter → BeforeUpdate → AfterUpdate → LostFocus → Exit ④ GotFocus → Enter → Current → BeforeUpdate → AfterUpdate → Exit → LostFocus
정답
1번
해설
Access 폼에서 레코드 이동 시 이벤트 순서: Current(레코드 이동 완료) → Enter(컨트롤 진입) → GotFocus(포커스 획득) → BeforeUpdate(업데이트 직전) → AfterUpdate(업데이트 완료) → Exit(컨트롤 종료) → LostFocus(포커스 상실). 이 순서는 Access의 고정된 이벤트 체인이다.