Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/vba/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ms access 将复选框值放入Ms Access中的数字字段_Ms Access_Vba_Ms Access 2010 - Fatal编程技术网

Ms access 将复选框值放入Ms Access中的数字字段

Ms access 将复选框值放入Ms Access中的数字字段,ms-access,vba,ms-access-2010,Ms Access,Vba,Ms Access 2010,我在ms access中有3个复选框,我想在数字字段中输入具体的数字 例如,当检查其中每一项时 PcType as Number type1 check1, type2 check2, type3 check3 当: 等等 If Me.Type1 = True and Me.Type2 = False Then PCType = 1 ElseIf Me.Type2 = True and Me.Type1 = False Then PCType = 2 ElseIf Me.Ty

我在ms access中有3个复选框,我想在数字字段中输入具体的数字 例如,当检查其中每一项时

PcType as Number
type1  check1, type2 check2, type3 check3
当:

等等

If Me.Type1 = True and Me.Type2 = False Then
    PCType = 1
ElseIf Me.Type2 = True and Me.Type1 = False Then
    PCType = 2
ElseIf Me.Type1 = True and Me.Type2 = True Then
    PCType = 4
ElseIf ... <further conditions go here>
End If    

然而,根据您提供的信息,很难给出这方面的示例。

亲爱的检查这也谢谢您亲爱的,但遗憾的是仍然没有得到答案
If Me.Type1 = True and Me.Type2 = False Then
    PCType = 1
ElseIf Me.Type2 = True and Me.Type1 = False Then
    PCType = 2
ElseIf Me.Type1 = True and Me.Type2 = True Then
    PCType = 4
ElseIf ... <further conditions go here>
End If    
If Me.Type1 = True Then
    If Me.Type2 = False Then
        PCType = 1
    ElseIf ...
    End If
End If