적용 대상
Microsoft 365용 Access Access 2021 Access 2019 Access 2016

적용 대상

CheckBox 개체

OptionButton 개체

ToggleButton 개체

TripleState 속성을 사용하여 확인란, 토글 단추 또는 옵션 단추에 Null 값을 표시하는 방법을 지정할 수 있습니다. 읽기/쓰기 Boolean입니다.

expression.TripleState

필수 요소입니다. 적용 대상 목록에 있는 개체 중 하나를 반환하는 식입니다.

주의

TripleState 속성에는 다음 설정이 사용됩니다.

설정

Visual Basic

설명

Yes

True

컨트롤이 Yes, No 및 Null 값의 상태를 순환합니다. Value 속성이 Null로 설정된 경우 컨트롤이 흐리게(회색) 표시됩니다.

아니요

False

(기본값) 컨트롤이 Yes 및 No 값의 상태를 순환합니다. Null 값은 No 값인 것처럼 표시됩니다.

참고: 컨트롤의 속성 시트, 매크로 또는 VBA(Visual Basic for Applications) 코드를 사용하여 TripleState 속성을 설정할 수 있습니다.

이 속성은 모든 보기에서 설정할 수 있습니다.

다음 예에서는 "frmOperations" 폼에서 "Check1"라는 확인란의 상태를 자세히 설명하는 메시지를 표시합니다.

Dim strTripleState As StringstrTripleState = Forms.Item("frmOperations").Controls.Item("Check1").TripleStateSelect Case strTripleState    Case True        MsgBox "For Check1, TripleState = " & strTripleState & _            ". The control will cycle through states for Yes, No, " & _            "and Null values. The control appears dimmed (grayed) " & _            "when its Value property is set to Null."    Case False        MsgBox "For Check1, TripleState = " & strTripleState & _            ". The control will cycle through states for Yes and No " & _            "values. Null values display as if they were No values."    Case Else        MsgBox "Can't determine the TripleState property for Check1."End Select 

도움이 더 필요하세요?

더 많은 옵션을 원하세요?

구독 혜택을 살펴보고, 교육 과정을 찾아보고, 디바이스를 보호하는 방법 등을 알아봅니다.