|
在各位老师的帮助下写一个自定义函数:Public Function EWstr(ByVal XMstr As String, ByVal CFstr As String) As String
Dim YWstr As String
Dim i As Integer
Dim RSsql As New ADODB.Recordset
Set RSsql = New ADODB.Recordset
RSsql.Open "select ITEM from tblATPfromPlanningg where CO_NUMBER='" & XMstr & "' and LN='" & CFstr & "'", CurrentProject.Connection, 1, 1
If Not (RSsql.EOF) Then
For i = 1 To RSsql.RecordCount
YWstr = YWstr & ";" & RSsql!ITEM
RSsql.MoveNext
Next i
EWstr = YWstr
Else
EWstr = ""
End If
RSsql.Close
Set RSsql = Nothing
End Function
但是现在系统提示有错误请帮助看看怎么回事?在别人的电脑上就没问题,奇怪谢谢 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|