我一直在挖掘这个问题,但我找不到与之相关的解决方案。我在一个单独的模块(模块5)中有一个SQL数据库连接,当我需要从另一个模块/表单连接到我的数据库时,我想调用它。数据库连接(Module5) Function dbconnection()Dim rst As New ADODB.RecordsetFunction po_maintenance()
Dim rst As New ADODB.Recor
我编写VBA代码是为了从Server编写数据,连接没有问题。但是当我在记录集部件系统中调试代码时,会抛出这是我的密码Dim conn As ADODB.ConnectionDim RecordConn As ADODB.ConnectionSet RecordConn = New ADODB.Connection
我在这一行得到编译时错误"User-defined types not defined“:会出什么问题呢?代码:
'Not the best way to get the name, just convenientSource=" & strFile & ";Extended Properties=""Excel 8
需要连接到这个文件(.xls)并制作一个实时图表
2起案件发生:dim path as string, DB as stringOLEDB = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & path & DB & ";
extendedproperties=""excel 12.0 xmlHDR=YES&q