以下是引用有点甜在2013-2-19 20:11:00的发言:
正常的,这样改一下:
Dim t1 As Double = Forms("找零计算").Controls("NumericComboBox1").vlue
Dim t2 As Double = Forms("找零计算").Controls("NumericComboBox2").Value
Forms("找零计算").Controls("NumericComboBox3").value = math.round(t1- t2,6)
楼主的代码有问题,不管放在哪个事件中,都提示错误:
第一行代码,Controls("NumericComboBox1").vlue,应是Value,属于失误。
第三行代码,math.round(t1- t2,6),去掉math。
Dim t1 As Double = Forms("找零计算").Controls("NumericComboBox1").Value
Dim t2 As Double = Forms("找零计算").Controls("NumericComboBox2").Value
Forms("找零计算").Controls("NumericComboBox3").value = Round2(t1- t2,1)
还需继续测试。
[此贴子已经被作者于2013-2-19 22:51:33编辑过]