Results 1 to 2 of 2
  1. #1
    lim_sup is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    1

    Connecting MS-ACCESS to SharePoint


    Hi,
    I am developing an ACCESS 2007 application that must query a remote SharePoint list over the internet. I am using ADO to connect and trying to follow VBA code from Litwin, Getz, and Gilbert that looks like:

    Dim cnn as ADODB.connection
    Set cnn = New ADODB.connection
    With cnn
    .Provider = “SQLOLEDB”
    .Properties(“Data Source”) = “Gorilla”
    .Properties(“Initial Catalog”) = “ADH2KSQL”
    .Properties(“User Id”) = “Suzanne”
    .Properties(“Password”) = “mud”
    .open
    End with

    My questions are:

    1) Does this seem like the right way to do this?

    2) Instead of "Gorilla" (Data Source) would I use the IP address of the server, like "www.remote.server", and do I need to specify a port number?

    3) How would I look for the needed parameters within the SharePoint configuration.

    Please forgive my ignorance, the SharePoint administrator just quit, and though I can get access to the configuration, I know very little about SharePoint.

    My 0verall objective is to use ACCESS to post files to the SharePoint list, retrieve the document URL from the SharePoint List , and then update additional SharePoint document attributes from the Access database. So far I have been unable to guess the parameters needed for a successful connection.

    Thanks. Any comments or suggestions will be appreciated.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    I myself would not go this route. Access2007 has a SharePoint Lists area in the External Data tab of the ribbon. I would rely on this.

    When the sharepoint server is not co-located on the same LAN - the work-ability of a linked connection is doubtful. This is due to the slow speed of the internet (compared to a LAN). One instead uses the import/work locally method to bring the data in locally - do your work - and then resync it back to sharepoint. You will want to refer to your Access2007 text book on this.

    Hope it helps.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Access VBA to SharePoint
    By Lorlai in forum SharePoint
    Replies: 4
    Last Post: 06-27-2011, 10:35 AM
  2. Connecting Project to Access
    By AeroEngineer in forum Access
    Replies: 1
    Last Post: 09-23-2010, 10:02 AM
  3. Connecting sybase thru ms-access odbc
    By murali.kothuru in forum Queries
    Replies: 2
    Last Post: 08-01-2010, 10:00 PM
  4. Replies: 3
    Last Post: 02-01-2010, 08:26 AM
  5. Replies: 0
    Last Post: 02-16-2009, 08:21 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums