DO CASE
CASE thisform.optiongroup1.option1.value=1
thisform.text2.value=DATE()
thisform.text3.value=DATE()
CASE thisform.optiongroup1.option2.value=1
thisform.text2.value=DATE()-Dow(DATE(),2)+1
thisform.text3.value=DATE()
CASE thisform.optiongroup1.option3.value=1
thisform.text2.value=DATE(YEAR(DATE()),MONTH(DATE()),1)
thisform.text3.value=DATE(YEAR(DATE()),MONTH(DATE()),DAY(DATE()))
CASE thisform.optiongroup1.option4.value=1
thisform.text2.value=DATE(YEAR(DATE()),1,1)
thisform.text3.value=DATE(YEAR(DATE()),MONTH(DATE()),DAY(DATE()))
CASE thisform.optiongroup1.option5.value=1
thisform.text2.value=DATE(YEAR(DATE())-1,1,1)
thisform.text3.value=DATE(YEAR(DATE())-1,12,31)
CASE thisform.optiongroup1.option6.value=1
thisform.text2.value=DATE(YEAR(DATE()),MONTH(DATE())-1,1)
thisform.text3.value=DATE(YEAR(DATE()),MONTH(DATE()),1)-1
CASE thisform.optiongroup1.option7.value=1
thisform.text2.value=DATE(YEAR(DATE()),MONTH(DATE())-2,1)
thisform.text3.value=DATE(YEAR(DATE()),MONTH(DATE()),DAY(DATE()))
ENDCASE
thisform.Refresh
图片附件: 游客没有浏览图片的权限,请
登录 或
注册