¡¡

Ä«Å×°í¸®    Æû,Â÷Æ®,À̺¥Æ®,ÄÁÆ®·Ñ Á¶È¸:2923
 Á¦¸ñ    Properties and Methods of the Form object

******************************************************************************************************

  Properties and Methods of the Form object

******************************************************************************************************

  Some additional properties of the Form object are:

  AllowDesignChanges  (Read/write; boolean)   ' Specifies whether changes can be made to a form in all views or only in Design view.

  Bookmark                (Read/write; variant)   ' Stores the value of the current record's bookmark as a unique binary string expression created by Access for each record each time you open the form.  Available only for the form's current record.

  DefaultControl (Read-only; control)           ' Sets the default properties for a particular type of control on a form.

  Me                      (Read-only; form object)   ' Refers to the form itself when used in the Me property in a VBA procedure stored in a form's module.

  Module              (Read-only; object)             ' Refers to a form's module.  If you refer to the Module property of a form with the HasModule property set to False, an error occurs ? so you might wish to check it first.

  OpenArgs          (Read/write; variant)          ' Determines the string expression specified as the OpenArgs argument of the OpenForm method.

  UniqueTable     (Read/write; string)              ' Specifies or determines a table to be updatable when a form is bound to a multiple table view or stored procedure in an Access project.

  Methods of the Form object are:

  GoToPage         ' Moves the focus to the first control on a specified page of the active form (which can contain multiple pages).

  Move                 ' Relocates a form to the location you specify, in twips from the upper and left edges of the program space.

  Recalc                        ' Updates all calculated controls on a form.  This method has the same effect as pressing the F9 function key when the form has the focus  Use Recalc to updated calculated controls that have ControlSource expressions based on other controls or fields in the form's data source.  When the ControlSource property setting includes domain or SQL aggregate functions, use the Requery method instead.

  Refresh              ' Updates the records in the current set with changes to the existing data made by you or by others in a multiuser environment.  This method does not change the recordset to include records that were added or exclude records that were deleted since the current set was last requeried and does not exclude changed records that may no longer satisfy the query or filter criteria that are specified in the form's data source.

  Repaint              ' Updates the screen and completes any pending recalculation of the form's controls.  Use Repaint to update the screen when repainting has been delayed while Access carries out other tasks.

  Requery             ' Updates the data source of the specified form.  The syntax is object.Requery, where object refers to the form; if you omit object, the method requeries the source of the active form.

  SetFocus            ' Moves the focus to the control that last had the focus on the specified form.  If the specified form has no enabled controls, this method moves the focus to the form itself.  You can move the focus only to a visible form.

  Undo                  ' Resets a form that has changed.  All changes to the form are discarded.  This method is equivalent of pressing the Escape key.

 

******************************************************************************************************