IF thisform.optiongroup1.value=1
SELECT 检修车间设备台帐
X1=reccount()
sum 设备原值 to X2
thisform.text1.value=X1
thisform.text2.value=X2
ENDIF
IF thisform.optiongroup1.value=2
thisform.text1.value=""
thisform.text2.value=""
SELECT 库检车间设备台帐
X3=reccount()
sum 设备原值 to X4
thisform.text1.value=X3
thisform.text2.value=X4
ENDIF
IF thisform.optiongroup1.value=3
thisform.text1.value=""
thisform.text2.value=""
SELECT 轮轴车间设备台帐
X5=reccount()
sum 设备原值 to X6
thisform.text1.value=X5
thisform.text2.value=X6
ENDIF
IF thisform.optiongroup1.value=4
thisform.text1.value=""
thisform.text2.value=""
SELECT 空调车间设备台帐
X7=reccount()
sum 设备原值 to X8
thisform.text1.value=X7
thisform.text2.value=X8
ENDIF