|
楼主 |
发表于 2020-9-5 17:12
|
显示全部楼层
- 语句如下,请大神纠正一下
- Randomize
- If "设计强度" = "C30" Then
- rst("抗压力值1") = Round(800 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C25" Then
- rst("抗压力值1") = Round(700 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C20" Then
- rst("抗压力值1") = Round(520 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C15" Then
- rst("抗压力值1") = Round(400 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C10" Then
- rst("抗压力值1") = Round(260 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C35" Then
- rst("抗压力值1") = Round(910 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C40" Then
- rst("抗压力值1") = Round(1050 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C45" Then
- rst("抗压力值1") = Round(1200 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C50" Then
- rst("抗压力值1") = Round(1300 + 100 * Rnd(), 1)
- ElseIf "设计强度" = "C55" Then
- rst("抗压力值1") = Round(1450 + 100 * Rnd(), 1)
- End If
复制代码
这个有问题吗 |
|