Form Object Methods

The Form object also has a number of methods you can use within your code. They're described in the following table.

Method

Arguments

Description

GoToPage

PageNumber, Right, Down

Moves the focus to the first control on a specified page in the current form.

Move

Left, Top, Width, Height

Moves the form to the specified coordinates.

Recalc

None

Immediately updates the calculated controls on a form.

Refresh

None

Immediately updates the records in the underlying record source for a form.

Repaint

None

Completes any pending screen updates for the current form.

Requery

None

Updates the data in the form from the underlying recordset.

SetFocus

None

Sets the focus to the current form.

Undo

None

Resets the value of a form when it has been changed.

0 0

Post a comment