Foxtable(狐表)用户栏目专家坐堂 → 如何实现在窗体内显示上次卡上余额?


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

主题:如何实现在窗体内显示上次卡上余额?

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/11 11:14:00 [显示全部帖子]

Dim cr As Row = Tables("表A").Current

Dim fdr As DataRow = DataTables("表A").Find("会员卡号 = '" & cr("会员卡号") & "' and _Identify < " & cr("_Identify"), "_Identify desc")

If fdr IsNot Nothing Then

    msgbox(fdr("余额"))

Else

    msgbox("没找到")

End If


 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/11 18:21:00 [显示全部帖子]

DataFormat事件

 

Dim cr As Row = Tables("表A").Current

Dim fdr As DataRow = DataTables("表A").Find("会员卡号 = '" & cr("会员卡号") & "' and _Identify < " & cr("_Identify"), "_Identify desc")

If fdr IsNot Nothing Then

    e.Text = fdr("余额")

Else

    e.Text = "没找到"

End If


 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/5/13 10:41:00 [显示全部帖子]

Dim cr As Row = Tables("表A").Current

Dim fdr As DataRow = DataTables("表A").Find("会员卡号 = '" & cr("会员卡号") & "' and _Identify < " & cr("_Identify"), "_Identify desc")

If fdr IsNot Nothing Then

    msgbox(format(fdr("余额"), "0.00") & "元")

Else

    msgbox("没找到")

End If


 回到顶部