DataEnvironment设计器连接SQL数据库的问题
DataEnvironment设计器连接SQL数据库DataReport连接DataEnvironment为空白是怎么回事请大佬,我在服务器上看了下dlp里也有数据可能是DataEnvironment里的dlp没有数据。数据库连接 Set Con = New ADODB.Connection '新建一个连接Con.Provider = "SQLOLEDB.1"
Con.ConnectionString = "DATABASE=DLSY;SERVER=192.168.1.8;UID=sa;PWD=sa;"
DataEnvironment.Connection.ConnectionString = Con
以下是打印
lsRS.AddNew
For i = 0 To 32
lsRS.Fields(i) = RS.Fields(i)
Next
lsRS.Update
RS.MoveNext
RS.MoveFirst
now_find = Not now_find
If MsgBox(("确定打印吗"), vbOKCancel, " 提示") = vbOK Then
电缆交流试验Report.DataMember = "dlp"
Unload DataEnvironment
电缆交流试验Report.Show
[此贴子已经被作者于2022-7-11 16:35编辑过]