|
Private Sub CommandButton1_Click()
If TextBox11.Value > "0" And TextBox11.Value < "8" Then
TextBox10.Text = TextBox1.Text
TextBox10.Text = Format((TextBox10.Text), "yyyy-m月第一周")
ElseIf TextBox11.Value > "7" And TextBox11.Value < "15" Then
TextBox10.Text = TextBox1.Text
TextBox10.Text = Format((TextBox10.Text), "yyyy-m月第二周")
ElseIf TextBox11.Value > "14" And TextBox11.Value < "22" Then
TextBox10.Text = TextBox1.Text
TextBox10.Text = Format((TextBox10.Text), "yyyy-m月第三周")
End If
End Sub
请老师帮忙看看这段代码,为什么只能判断出来第一周,第二周跟第三周条件满足以后也不能判断,也不提示错误。
|
|