【发布时间】:2014-01-17 20:38:47
【问题描述】:
我正在制作一份关于支付金额和目标金额的报告,并且我想包含一条带指标的行。以下是指标的代码;但是,当我保存它时,它会显示错误end of statement expected。谁能帮忙,我是Visual Basic的新手。
Function KPI Indicator(AmtPaid As Decimal, TargetAmt As Decimal) As String Select Case
AmtPaid/TargetAmt
Case Is>= 1.5
Return "Green"
Case Is>=.90
Return "Yellow"
Case Else
Return "Red"
End Select
End Function
【问题讨论】:
-
你Q中的代码和你项目中的代码是一样的吗?如果是这样,它充满了语法错误。
-
是的,这就是我项目中的代码。你能帮帮我吗?