Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to Relink SharePoint Table with VBA

Status
Not open for further replies.

TMSBrad

Technical User
Jul 21, 2011
1
US
I have an MS Access 2007 database with a link to a SharePoint Issues list which must be relinked frequently. I can relink it using the wizard (right-click on the table name, click SharePoint List Options, Relink Lists), but I would really like to automate it with VBA.

I'm trying to use this:

DoCmd.TransferSharePointList acLinkSharePointList, " "XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", , "Issues"

Where the ListID is the segment of the list URL between "ShowWebPart={"and "}".

When I run that, I get this:

Run-time error '31559'
[Database Name] Report could not connect to the site you specified. Verify the address of the site or contact your site administrator.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top