为了在检验环节直接计算出合格率,发现了函数FormatPercent。
FormatPercent ( Expression [, NumDigitsAfterDecimal ] [, IncludeLeadingDigit ] [, UseParensForNegativeNumbers ] [, GroupDigits ] )
rst!状态 = "合格率: " & FormatPercent(Me!合格数量 / Me!检验数量, 1),保留小数点后一位。