VB 编译错误 参数不可选
PrivateSubCommand3_Click()Dimtime1AsDataDimtimesAsStringDimtimes1AsStringtimes=format...
Private Sub Command3_Click()
Dim time1 As Data
Dim times As String
Dim times1 As String
times = format(mv1.VALUE, "yyyy-mm-dd")
times1 = format(mv2.VALUE, "yyyy-mm-dd")
tcs.WLBM = SafeString(txtMateriaId.Text)
tcs.WLMS = SafeString(txtMateriaDesc.Text)
If ComboYS.Text = "火运" Then
tcs.YS = "1"
ElseIf ComboYS.Text = "汽运" Then
tcs.YS = "2"
End If
flag = 1
Set rollList.DataSource = csm.queryList(times.times1)
Public Function queryList(tp As String, tp1 As String) As Recordset
Set queryList = csi.queryList(conn, tp, tp1)
说queryList参数不可选 展开
Dim time1 As Data
Dim times As String
Dim times1 As String
times = format(mv1.VALUE, "yyyy-mm-dd")
times1 = format(mv2.VALUE, "yyyy-mm-dd")
tcs.WLBM = SafeString(txtMateriaId.Text)
tcs.WLMS = SafeString(txtMateriaDesc.Text)
If ComboYS.Text = "火运" Then
tcs.YS = "1"
ElseIf ComboYS.Text = "汽运" Then
tcs.YS = "2"
End If
flag = 1
Set rollList.DataSource = csm.queryList(times.times1)
Public Function queryList(tp As String, tp1 As String) As Recordset
Set queryList = csi.queryList(conn, tp, tp1)
说queryList参数不可选 展开
展开全部
csi.queryList(conn, tp, tp1) 这个函数只有2个参数,你传进了三个,2个参数都是字符串,你传的第一个是 adodb.connection 类型,所以不对了,应该把第一个拿掉,或是改告一下csi.queryList(tp, tp1)函数
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询