Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.01 KB

containers-count-property-dao.md

File metadata and controls

30 lines (19 loc) · 1.01 KB
title TOCTitle ms:assetid ms:mtpsurl ms:contentKeyID ms.date mtps_version ms.localizationpriority
Containers.Count property (DAO)
Count Property
3b0bf865-a4d5-82bb-c1a9-9957f110db4c
48544276
09/18/2015
v=office.15
medium

Containers.Count property (DAO)

Applies to: Access 2013, Office 2013

Returns the number of Connection objects in the Connections collection.

Syntax

expression .Count

expression A variable that represents a Connections object.

Remarks

Because members of a collection begin with 0, you should always code loops starting with the 0 member and ending with the value of the Count property minus 1. If you want to loop through the members of a collection without checking the Count property, you can use a For Each...Next command.

The Count property setting is never Null. If its value is 0, there are no objects in the collection.