If e.DataCol.Name = "N1" Then
If Forms("增加排班").opened()
MessageBox.Show(0)
Dim nf As String=Forms("增加排班").Controls("ComboBox2").value
Dim yf As String=Forms("增加排班").Controls("ComboBox3").value
Dim ts As Integer=Date.DaysInMonth(nf,yf)
If e.DataRow("N1") = "中1" Then
For i As Integer =2 To ts
...........
...........
End If
Next
Next
End If
End If
End If