Rss & SiteMap

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

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

标题:如何提取关联表最后一条记录数据

11楼
狐狸爸爸 发表于:2008/10/21 14:30:00

你只看到了电缆仓明细的DataColChanged事件中的代码:

If e.DataCol.Name = "分段" Then
  Dim Dr As DataRow = e.Datarow.GetParentRow("电缆仓")
  If Dr IsNot Nothing Then
     DataTables("电缆仓").DataCols("分段").Recalc(dr)
  End if
End if

却没有看到在电缆仓的分段列,还有计算代码:

Dim Dr As DataRow = DataTables("电缆仓明细").Find("pid = " & e.DataRow("_Identify"),"_Identify Desc")
If Dr IsNot Nothing Then
   e.Datarow("分段") = dr("分段")
End If

12楼
实话实说 发表于:2008/10/21 16:09:00
惭愧
共12 条记录, 每页显示 10 条, 页签: [1] [2]

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

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