求助各位高手,Case后面跟变量为字符串的格式,可否写成Case "0.15",如果可以,下面这个代码输入"0.15"与"0.25"时,返回的都是Case Else的结果,问题出在哪里?
Private Sub 致命缺陷_AfterUpdate()
Dim U As String
U = Me!致命缺陷.Value
Select Case U
Case "0.15"
Me.致命Ac = 0
Me.致命Re = 1
Me.抽检数量 = Me.交货数量
Case "0.25"
Me.致命Ac = 1
Me.致命Re = 2
Me.抽检数量 = Me.交货数量
Case Else
Me.致命Ac = 100
Me.致命Re = 99
Me.抽检数量 = Me.交货数量
End Select