Foxtable(狐表)用户栏目专家坐堂 → [求助]:想做一个员工生日的提醒


  共有6436人关注过本帖树形打印复制链接

主题:[求助]:想做一个员工生日的提醒

帅哥哟,离线,有人找我吗?
don
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:八尾狐 帖子:1812 积分:12999 威望:0 精华:14 注册:2008/10/11 18:07:00
  发帖心情 Post By:2013/6/21 15:17:00 [显示全部帖子]

'日本
Dim flt As String  = Format(Date.Today,"d").Replace(Format(Date.Today,"yyy"),"") & " "
flt = "Convert([个人基本资料_出生年月], 'System.String') Like '%" & flt & "%'"
Tables("员工登记表格").filter = flt

'月本
Dim flt As String
Dim d As Date = Date.Today
Dim y As Integer = d.Year
Dim m As Integer = d.Month
Dim Days As Integer = Date.DaysInMonth(y,m)
Dim fd As Date = New Date(y,m,1) '该月的第一天
Dim ld As Date = New Date(y,m,Days) '该月的最后一天
flt = "[个人基本资料_出生年月] >=#" & fd & "# and [个人基本资料_出生年月] <=#" & ld & "#"

Tables("员工登记表格").filter = flt
[此贴子已经被作者于2013-6-21 15:17:24编辑过]

 回到顶部