Application.RefreshDatabaseWindow method (Access)
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
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.
Sub CreateFormAndRefresh()
Dim frm As Form
Set frm = CreateForm
DoCmd.Save , "NewForm"
RefreshDatabaseWindow
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om