Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeAccessTable

Aliases: AccessTable
Module
PSWriteOffice
Aliases
AccessTable
Inputs
OfficeIMO.Access.AccessDocument
Outputs
OfficeIMO.Access.AccessTable

Adds a table to a newly created native database model.

Syntax

Add-OfficeAccessTable
[[-Content] <ScriptBlock>]
[-Document <AccessDocument>]
[-Name] <String>
[-PassThru]
[<CommonParameters>]
#
Parameter set: Document

Examples

Adds a table to a newly created native database model.

$table = $database | Add-OfficeAccessTable -Name Contacts -PassThru

Parameters

-Content ScriptBlock optionalposition: 1
Content block whose AccessColumn and AccessRow commands target the new table.
-Document AccessDocument optionalpipeline: True (ByValue)
Live database document.
-Name String requiredposition: 0
Table name.
-PassThru SwitchParameter optional
Return the created or changed object.

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.