如图,“1”是个文本框,填入数字为“x”,假如,逻辑列(对账)没有勾选的合计数借方金额为“A”,贷方金额合计为“B”,想把"x+A-B"的合计数和一个“Label1”绑定,显示在窗口,求代码?,谢谢
此主题相关图片如下:截图.png
表格datacolchanged事件
Select Case e.DataCol.Name
Case "借方金额","贷方金额","对账"
if forms("某窗口").opened
dim x as double = val(forms("某窗口").controls("文本框1").text)
dim a as couble = e.datatable.compute("sum(借方金额)","对账=false")
dim b as couble = e.datatable.compute("sum(贷方金额)","对账=false")forms("某窗口").controls("Label1").text = x+A-B
End If
End Select
文本框1,valuechanged事件
dim x as double = val(e.sender.text)
dim a as couble = datatable("某表").compute("sum(借方金额)","对账=false")
dim b as couble = datatable("某表").compute("sum(贷方金额)","对账=false")e.form.controls("Label1").text = x+A-B
'Page.Links.Add("本次对账不通过","本次对账不通过(" & cnt4 & ")" ),这个的删除代码怎么写
单击“试算平衡”按钮,计算“期初+银行日记账借方合计-银行日记账贷方合计=试算结果
”
[此贴子已经被作者于2024/5/6 14:59:37编辑过]