从访问查询sharepoint 365

时间:2019-03-05 16:55:57

标签: ms-access sharepoint access-vba

Set Cn = New ADODB.Connection
'*********************************************************************************************************
'Set Sharepoint list data
ListID = "{0C111BDB-4FBD-4751-8C11-46753468280B}"
ListURL = "xxxxxx"
ViewID = "{31160A8D-2F43-46A6-95EF-75BD59604073}"
ViewName = "All Items"

sConn = "Provider=Microsoft.ACE.OLEDB.12.0;WSS;IMEX=0;RetrieveIds=Yes;" & _
"DATABASE=" & ListURL & ";" & _
"LIST=" & ListID & ";" & _
"VIEW=" & ViewID & ";"
'*********************************************************************************************************
'Set connection
Set Cn = New ADODB.Connection

With Cn
    .ConnectionString = sConn
    .Open

以前使用上面的方法将访问数据库连接到sharepoint 2013列表,现在看来这是多余的吗?

0 个答案:

没有答案