# Add-OfficeAccessColumn

Adds a typed field before rows are appended. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

Aliases: AccessColumn

**Module**

`PSWriteOffice`

**Aliases**

`AccessColumn`

**Inputs**

`OfficeIMO.Access.AccessTable`

**Outputs**

`OfficeIMO.Access.AccessColumn`

**Source**

[AddOfficeAccessColumnCommand.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Access/AddOfficeAccessColumnCommand.cs#L17) 

Adds a typed field before rows are appended.

## Syntax

```
Add-OfficeAccessColumn
[-AutoNumberSeed <Int32>]
[-MaxLength <Int32>]
[-Name] <String>
[-PassThru]
[-Precision <Int32>]
[-Scale <Int32>]
[-Table <AccessTable>]
[-Type <AccessDataType>]
[<CommonParameters>]
```

[#](#method-add-officeaccesscolumn-int32-int32-string-switchparameter-int32-int32-accesstable-accessdatatype)

Parameter set: `Table`

## 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

### Adds a typed field before rows are appended.

```powershell
$table | Add-OfficeAccessColumn -Name DisplayName -Type ShortText -MaxLength 120
```

## Parameters

**-AutoNumberSeed Int32 optional**

First sequential AutoNumber value.

**-MaxLength Int32 optional**

Maximum short-text length.

**-Name String requiredposition: 0**

Field name.

**-PassThru SwitchParameter optional**

Return the created or changed object.

**-Precision Int32 optional**

Decimal precision.

**-Scale Int32 optional**

Decimal scale.

**-Table AccessTable optionalpipeline: True (ByValue)**

Table in a newly created database model.

**-Type AccessDataType optional**

Native field type.

Possible values: `AutoNumber`, `Int32`, `ShortText`, `LongText`, `Currency`, `Double`, `DateTime`, `Boolean`, `Guid`, `Binary`, `Byte`, `Int16`, `Single`, `Decimal`, `Int64`, `Complex`, `ExtendedDateTime`, `Unknown`

## 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:3BFC8E9260C2F63F80FDFF2FBBAB75502268E467B1C2F3412E07BBFED5C2FB98 -->
