After Update

This event occurs after the record changes have been saved in the database. It is also invoked when a control loses focus and after the data in the control has changed. Use the AfterUpdate event to update data in other controls on the form or to move focus to a different record or a control.

The event procedure in Hands-On 24-5 creates an audit trail for all newly added records, as illustrated in Figure 24-1.

% MyCust.txl - Notepad

Fife Edit Format Help

TIMRS Created on: 6)19(2004 1:08:00 PM T] MAXTS Created on:6i19(2004 1:15:12 PM ,J

Figure 24-1: The Form_AfterUpdate event procedure is used here to store information about newly added records in a text file.

0 0

Post a comment