Dim cb As WinForm.ComboBox = Forms("会计科目主窗口").Controls("ComboBox2")
If cb.Text > "" Then
Dim d As Date = cdate(cb.Text.Replace("年","-").Replace("月","-") & "01")
d = d.AddMonths(-1)
Dim dr3 As DataRow = DataTables("科目汇总").Find("一级码 = '1001' and 年份 = '" & d.Year & "'and 月份 = '" & d.Month & "'")
End If