Foxtable(狐表)用户栏目专家坐堂 → 数据行统计


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

主题:数据行统计

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


加好友 发短信
等级:版主 帖子:5246 积分:33163 威望:0 精华:8 注册:2013/1/17 21:28:00
  发帖心情 Post By:2014/1/15 12:44:00 [显示全部帖子]

Dim StartDate As Date = Date.Today().AddDays(-30)
Dim cmdn As new SQLcommand
cmdn.c
cmdn.CommandText = "SELECT Count(唯一、无重复值列) From {Table1} where [日期] > '" & StartDate & "'"

If cmdn.ExecuteScalar > 500  Then
    messagebox.show("累计完成目标500")
    Return
End If


 回到顶部