Dim dte2 As Date = Date.Today.AddDays(3)
Dim dte3 As Date = Date.Today.AddDays(-30)
Dim dr As DataRow = DataTables("改正").Find("限定日期 <= #" & dte2 & "# and 限定日期 >= #" & dte3 & "#")
If dr IsNot Nothing Then
MessageBox.Show("有过期,或即将到期!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Tables("改正").Filter = "限定日期 <= #" & dte2 & "# and 限定日期 >= #" & dte3 & "#"
Forms("查阅").open
End If