你是参考这个例子做的吗?http://www.foxtable.com/webhelp/scr/2471.htm
改一下提醒的代码
Dim dt As Date = Date.Today.AddDays(10)
Dim dr As DataRow = DataTables("库存表").Find("到期日期 <= #" & dt & "# and 到期日期 >= #" & Date.Today & "#")
If dr IsNot Nothing Then
MessageBox.Show("有产品即将到期!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Tables("库存表").Filter = "到期日期 <= #" & dt & "# and 到期日期 >= #" & Date.Today & "#"
MainTable = Tables("库存表")
End If