Application.NewCurrentDatabase method (Access)
Creates a new Microsoft Access database.
Syntax
expression.NewCurrentDatabase (filepath, FileFormat, Template, SiteAddress, ListID)
expression A variable that represents an Application object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
filepath | Required | String | A string expression that is the name of a new database file, including the path name and the file name extension. If your network supports it, you can also specify a network path in the following form: \Server\Share\Folder\Filename |
FileFormat | Optional | AcNewDatabaseFormat | An AcNewDatabaseFormat constant that specifies the file format to use for the newly created database. |
Template | Optional | Variant | The name of the template to be used for the new database. |
SiteAddress | Optional | String | Uniform Resource Locator (URL) of the Windows SharePoint Services 3.0 site to link to. |
ListID | Optional | String | Globally Unique Identifer (GUID) or the name of the Windows SharePoint Services 3.0 list to link to. |
Remarks
Use this method to create a new database from another application that is controlling Microsoft Access through Automation, formerly called OLE Automation. For example, you can use the NewCurrentDatabase method from Microsoft Excel to create a new database in the Access window.
The NewCurrentDatabase method enables you to create a new Access database from another application through Automation. After you have created an instance of Access from another application, you must also create a new database. This database opens in the Access window.
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.
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기