Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

Application.RefreshDatabaseWindow Method

Office 2007
The RefreshDatabaseWindow method updates the Database window after a database object has been created, deleted, or renamed.

Syntax

expression.RefreshDatabaseWindow

expression   A variable that represents an Application object.

Return Value
Nothing

Remarks

You can use the RefreshDatabaseWindow method to immediately reflect changes to objects in Microsoft Access in the Database window. For example, if you add a new form from Visual Basic and save it, you can use the RefreshDatabaseWindow method to display the name of the new form on the Forms tab of the Database window immediately after it has been saved.

Example

The following example creates a new form, saves it, and refreshes the Database window:

Visual Basic for Applications
Sub CreateFormAndRefresh()
    Dim frm As Form

    Set frm = CreateForm
    DoCmd.Save , "NewForm"
    RefreshDatabaseWindow
End Sub



Community Additions

ADD
Show:
© 2015 Microsoft