RefreshDatabaseWindow Method Example

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

Sub CreateFormAndRefresh()
    Dim frm As Form

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