-- 作者:hzw0927
-- 发布时间:2019/9/28 16:38:00
-- [求助]帮忙看看
Dim jb As New SQLJoinTableBuilder("流向查询表","客户表") Dim Cols1() As String ={"品名","规格","医疗机构"} Dim Cols2() As String ={"品名","规格","医疗机构"} jb.Addtable("客户表",Cols1,"流向表",cols2) jb.AddCols("所属区域","医院等级","客户","联系方式","开票时间","{客户表}.医疗机构","{客户表}.品种","{客户表}.规格","单价","数量") jb.AddExp("金额","数量*单价") jb.Build() MainTable = Tables("流向查询表")
执行时出现“至少有一个参数没有被指定值”,求助!
|
-- 作者:有点蓝
-- 发布时间:2019/9/28 16:53:00
--
Dim jb As New SQLJoinTableBuilder("流向查询表","客户表") Dim Cols1() As String ={"品名","规格","医疗机构"} Dim Cols2() As String ={"品名","规格","医疗机构"} jb.Addtable("客户表",Cols1,"流向表",cols2) jb.AddCols("所属区域","医院等级","客户","联系方式","开票时间","{客户表}.医疗机构","{客户表}.品种","{客户表}.规格","单价","数量") jb.AddExp("金额","数量*单价")msgbox(jb.Buildsql) \'这里显示什么SQL?
红色的列还有没有哪个是2个表都有的,列名是否都正确
|