Save a database object by using an event procedure

Save a database object by using an event procedure

  1. Open the event procedure for the appropriate event in the Code window.

    How?

    For example, to save a form by clicking a command button on a form, open the button's Click event procedure.

  2. Use the Save method to carry out the Save action in the procedure, setting the objecttype argument to the type of the object you want to save and the objectname argument to the name of the object.

    How?

  3. Run the procedure.

    How?

For more information about the Save action, click .