Rss & SiteMap

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

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

标题:尽然被这个小问题卡了

1楼
小狐 发表于:2011/8/3 23:24:00
草,尽然被这个小问题卡了。
这两列动了一列,另一列就变成nothing:
公式有误,修改后两列都成为nothing,谁帮我改一下
Select e.DataCol.Name
      Case "借方金额"
        If e.DataRow("借方金额") IsNot Nothing  Then
            e.DataRow("贷方金额") = Nothing
        End If
    Case "贷方金额"
        If e.DataRow("贷方金额") IsNot Nothing  Then
            e.DataRow("借方金额") = Nothing
        End If
End Select
[此贴子已经被作者于2011-8-4 16:02:01编辑过]
2楼
czy 发表于:2011/8/4 0:23:00

这样?

 

Select e.DataCol.Name
    Case "借方金额"
        If e.DataRow.IsNull("借方金额") = False  Then
            e.DataRow("贷方金额") = Nothing
        End If
    Case "贷方金额"
        If e.DataRow.IsNull("贷方金额") = False Then
            e.DataRow("借方金额") = Nothing
        End If
End Select

3楼
blackzhu 发表于:2011/8/4 7:40:00
小狐该打.

4楼
小狐 发表于:2011/8/4 16:06:00

A列修改后,把B列的值赋值为nothing,B列也等同于修改了,同样会触动这一个公式造成A列修改。

不知道行不行,还没有试

5楼
小狐 发表于:2011/8/4 16:09:00
以下是引用czy在2011-8-4 0:23:00的发言:

这样?

 

Select e.DataCol.Name
    Case "借方金额"
        If e.DataRow.IsNull("借方金额") = False  Then
            e.DataRow("贷方金额") = Nothing
        End If
    Case "贷方金额"
        If e.DataRow.IsNull("贷方金额") = False Then
            e.DataRow("借方金额") = Nothing
        End If
End Select

测试后还是不行

6楼
小狐 发表于:2011/8/4 16:26:00
搞定了
7楼
xmj09663 发表于:2011/8/4 16:30:00
小狐  被八月半  月饼的事  忙晕了
8楼
小狐 发表于:2011/8/4 16:37:00

月饼?我只对月亮感兴趣

共8 条记录, 每页显示 10 条, 页签: [1]

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

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