# Close-OfficeAccess

Closes a native database without implicitly saving it.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Access.AccessDocument`

**Source**

[CloseOfficeAccessCommand.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Access/CloseOfficeAccessCommand.cs#L14) 

Closes a native database without implicitly saving it.

## Syntax

```
Close-OfficeAccess
-Document <AccessDocument>
[<CommonParameters>]
```

[#](#method-close-officeaccess-accessdocument)

Parameter set: `Document`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Project, Access, and EPUB Files](/docs/pswriteoffice/project-access-epub/) Guide
  
  Create and read Microsoft Project schedules, Access databases and EPUB books from PowerShell, without Project or Access installed.

## Examples

### Closes a native database without implicitly saving it.

```powershell
$database | Close-OfficeAccess
```

## Parameters

**-Document AccessDocument requiredpipeline: True (ByValue)**

Live database document.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:EA467B7FD43EA4E1684D6CE90824E318FF9A8BC41EB1A0F51913E0A70D8946BB -->
