Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]复制

1楼
风声 发表于:2023/12/2 12:09:00
老师好,项目后面再增加一个条件为姓名。谢谢老师!


If e.DataCol.Name = "项目" Then
    If e.DataRow.IsNull("项目") = False Then
        Dim dr1 As DataRow = e.DataTable.Find("项目='" & e.NewValue & "' and _sortkey <" & e.DataRow("_sortkey"),"_sortkey desc")
        If dr1 IsNot Nothing Then
            e.DataRow("总表_上期读数") = dr1("总表_本期读数")            
        End If
    End If    
End If
2楼
有点蓝 发表于:2023/12/2 13:45:00
If e.DataCol.Name = "项目" orelse e.DataCol.Name = "姓名" Then
    If e.DataRow.IsNull("项目") = False andalso e.DataRow.IsNull("姓名") = False  Then
        Dim dr1 As DataRow = e.DataTable.Find("项目='" & e.DataRow("项目")  & "' and 姓名='" & e.DataRow("姓名")  & "' and _sortkey <" & e.DataRow("_sortkey"),"_sortkey desc")
3楼
风声 发表于:2023/12/2 16:10:00
谢谢老师!
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .03320 s, 2 queries.