Reading sharepoint O365 list from MS Access 2010

Hi 
I have a requirement to read/update sharepoint O365 list from MS Access 2010 using REST API in VBA. I have searched for sample code but couldnt find anything yet. Has anyone worked on O365 and access? If so please share some samples. I am a sharepoint developer
and new to VBA. Thanks in advance.
Thanks
Suraj

Hi,
The following articles for your reference:
Accessing SharePoint Lists with Visual Basic for Applications
http://depressedpress.com/2014/04/05/accessing-sharepoint-lists-with-visual-basic-for-applications/
Remote authentication in SharePoint Online
http://allthatjs.com/2012/03/28/remote-authentication-in-sharepoint-online/
As this question is more relate to Access and Office 365, I suggest you post it to Access for Developers or Office 365 Forum, you will get more help and confirmed answers from there.
Access for Developers:
http://social.msdn.microsoft.com/Forums/en-US/home?forum=accessdev
Visual Basic for Applications (VBA):
http://social.msdn.microsoft.com/Forums/en-US/home?forum=isvvba
Office 365:
http://community.office365.com/en-us/forums/default.aspx  
Best Regards
Dennis Guo
TechNet Community Support

Similar Messages

  • Help needed with populating a drop-down list from an Access Database

    Topic
    data drop-down list
    Jason Murthy - 11:39am Feb 14, 2005 Pacific
    Hello,
    I am trying to use the data drop-down list from the custom library. I enter the name of my data connection and the other 2 variables in quotes when they are initialized, just like the example says to, but it still doesn't work. Anyone have any thoughts?
    Thanks,
    Jason
    Reply To This Discussion | Back to Topic List | Bookmark | Change Subscription
    To start a NEW discussion click on the Back to Topic List link and select Add Topic.
    If you are in an archive forum please go up to the main topic list (archives are read only).
    Messages 11 messages. Displaying 10 through 11.
    First Previous Next Last Show All Messages
    Denzil White - 5:46am Jul 28, 05 PST (#10 of 11)
    Oh and before you say anything more I have also tried changing it from Javascript to the FormCalc, and no diff, maybe I am more stupid than I realised, heh,heh
    Post Reply | Bookmark
    Henk Pisuisse - 12:06am Aug 9, 05 PST (#11 of 11)
    I am having trouble (sleepless nights) with populating a drop-down list from an Access Database. The result is: I only get the first record from the data connection. So the connection works but I cannot go through the other records. Maybe there is an other way to do this.
    I am trying to selectively fill a form with data from an MS-access database.
    I hope someone can help me.
    [email protected]
    The Netherlands (small country in Europe)

    If you email the access DB and the form to [email protected], I will try to take a look at it for you.

  • Unable to read data in Excel 2010/2013 from encrypted Access 2010/2013 database

    A customer has an Access database (.accdb), which was encrypted/given a database password in Access 2013. It should be possible to read that data from Excel 2010/2013, but when clicking on Data-->From Access
    and the correct path is put in and the correct database password has been entered, Excel just keeps prompting for the database password. This happens with both Excel 2010 and 2013.
    The database password supplied is correct as evidenced by opening the database in Access 2013 using the same database password.
    A colleague in a separate company has found that a separate .accdb file he has recently encrypted also has the same problem as above, yet a .accdb file encrypted ages ago
    is readable from Excel.
    How do I get Excel 2010/2013 to read the data from the encrypted .accdb file, please?

    Since Access 2010 the encryption algorithm has changed:
    Source
    Follow the next steps to apply an encryption method that will allow you to (programmatically) connect to the database:
    1. Decrypt the database
    2. Change the encryption method:
        - In Access Options select 'Client Settings'
        - Scroll down to section 'Advanced'
        - 'Encryption Method': select option 'Use legacy encryption (..'
        - Click 'OK'
    3. Encrypt the database
    Hope this helps.
    Emiel Nijhuis

  • Errors executing bulk query when updating a Sharepoint Linked List from Access

    Hi all,
    I have a Sharepoint list that is a Linked List with MS Access. It has just under 5,000 items (4,864), thus meaning it avoids the reduction in functionality lists of greater than 5,000 items have.
    Among the list are five calculated columns. These take the information from another column (different employee numbers), and by using a formula produce a clickable link to my company's Directory page, where that particular employee's info is displayed. I'm
    not sure if these five columns are relevant to my query, but I'm mentioning them in case.
    My problem is this: Frequently when I run any query on the list that updates the list, I get this error: "There were errors executing the bulk query or sending the data to the server. Reconnect the tables to resolve the
    conflicts or discard the pending changes".
    When I review the errors, it says they conflict with errors a previous user made (with that previous user being me). It frequently highlights several columns, despite the info in them being identical, and the calculated columns (with the original showing
    the value they contained and the new showing #VALUE! (as Access can't display the formulas).
    However, if I click Retry All Changes, all the update stick and everything seems fine. Why is this happening? It's proving very annoying and is really stopping the automation of my large number of queries. A list of 5000 items isn't particular big (and they've
    got roughly 100 columns, although I didn't think that was too large either, given Excel's 200+ column limit).
    Is this due to poor query design and SQL? Is this due to connectivity issues (which I doubt, as my line seems perfect)? Is this due to Access tripping over itself and not executing the update on each row in the table, but rather executing them concurrently
    and locking itself up? I'm at wit's end about it and really need to get this sorted.
    Thanks in advance for any suggestions.

    Hi amartin903,
    According to your description, my understanding is that you got an error when you used a linked list from Access.
    The table that you are updating is a linked table that does not have a primary key or a unique index. Or, the query or the form is based on a linked table that does not have a primary key or a unique index. Please add the primary key or a unique index.
    Here is a similar post, please take a look at:
    http://social.technet.microsoft.com/Forums/en-US/545601e9-a703-4a02-8ed9-199f1ce9dac8/updating-sharepoint-list-from-access?forum=sharepointdevelopmentlegacy
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Reading a multilevel list from MS Word Doc and converting it into an HTML nested list using C#

    I can achieve the above for a single level list as follows:
    foreach (Paragraph item in app.Selection.Range.ListParagraphs)
    item.Range.InsertBefore("<li>");
    item.Range.InsertAfter("</li>");
    Using C#, how can I programmatically convert a multilevel list (like the following) in a Word doc to a nested HTML list? Note: The bullet icons are not important. Thanks..Nam
    List from Word Doc:
    A
    B
    C
    D
    E
    F
    G
    H
    I

    Hi Nam,
    >>how can we programmatically determine the start and end elements of the sub-list with elements C,DE,F,G in the example of my original post? <<
    We can check the begin and end elements of the sub-list by the
    ListLevelNumber. For example, the sub-list's ListLevelNumber start at 2 by default. Here is the code to find the begin element for your reference:
    Sub FindBeginSubElement()
    For i = 1 To Selection.Range.ListParagraphs.Count
    If Selection.Range.ListParagraphs(i).Range.ListFormat.ListLevelNumber = 2 Then
    Debug.Print "begin sub element:" & Selection.Range.ListParagraphs(i).Range.Text
    Exit Sub
    End If
    Next i
    End Sub
    Also we can loop the selection in reverse order to find the end element for the sub-list.
    Hope it is helpful.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Reading date/time type from Microsoft Access in LabWindows 7.1

    Hi,
    I'm afraid I'm having some trouble reading some date information from an MS Access table.  I assume it's returned as a string (and this may be my first mistake) but when I use DBBindColChar I just get garbage information.  This is the code I'm using:
      sprintf(queryString, "SELECT date_time, type, serial_number, Voltage_at_G5_V, Voltage_at_G6_V \
                            FROM gain \
                            WHERE serial_number=%lf \
                            ORDER by date_time", *serialNumber);
    followed by...
      queryHandle = DBActivateSQL (pmtDataHandle, queryString);
    and....
        resCode = DBBindColChar (queryHandle, 1, 22, internal_date, &dateStatus, "");
      resCode = DBBindColChar (queryHandle, 2, 4, internal_type, &typeStatus, "");
      resCode = DBBindColDouble (queryHandle, 3, internalSerialNumber, &serialNumberStatus);
      resCode = DBBindColDouble (queryHandle, 4, &g5VRead, &g5VStatus);                         
      resCode = DBBindColDouble (queryHandle, 5, &g6VRead, &g6VStatus);
    Is there anything special about the type date/time that I am not taking care of?  All of the other columns read back fine....
    Thanks in advance
    Message Edited by acrmartin on 02-23-2006 02:59 PM

    Hello,
    Just copy and paste the contents to a new post - that will do it
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear

  • Hide Custom Address List from GAL Exchange 2010 SP2

    So, here is the scenario. 
    I have a list of contacts that I only want 12 users to be able to see.  I have read up on the Address Book Policies, however, what I am REALLY wanting to do is to create an address list of the contacts, and hide THAT from the gal.  I could then
    create a new GAL/Address Book Policy that includes the new address list of contacts, and essentially make the GAL + Contacts address list visible to that group of 12.
    Is this possible?  It seems silly to apply a new Address Book Policy to 3000 users, would rather apply a new policy to the 12 users that need to see the contact info
    TAG

    See if the following discussions of Address Book Policies answer your questions: 
    http://technet.microsoft.com/en-us/library/hh529948(v=exchg.141).aspx
    http://technet.microsoft.com/en-us/library/hh529930.aspx

  • Problem to acces linked table from Microsoft Access 2010

    We have a couple of MS access databases that have linked tables from  oracle Database. When the user try to view the content of the table it gets an error saying that the table or view does not exist.
    But if i create a new MS access db and link the same tables with the same user, we are able to view the content of the table. So it does not seem to be related to permissions...
    If we delete the linked table and try to re-attached them we got the same error
    Anyone have a clue ?

    It looks like this is a question that should be addressed in our ORACLE ODBC community, since it has to to with MS Access links to an Oracle DB via (I presume) an Oracle ODBC driver.
    This community is for Oracle Heterogeneous Gateways.  That is, Oracle DB links into 3rd party databases.
    Thanks!
    Matt

  • InfoPath 2013 customized forms no longer working after linking Sharepoint 2010 list to MS Access 2013 database

    Hello,
    I am having trouble with my infopath form now that I have linked my Sharepoint list to an Access database.  
    Background:  I created a simple SharePoint list and a few workflows to have users submit requests for changes to my organization's EMR system and have those requests be approved by the appropriate manager/department.  I used
    InfoPath to customize my form so that it would hide/show different portions depending on what the user selected.  The form has 3 views: NewItem, EditItem, ViewItem. 
    Issue: The form and workflows were working great until I linked my SharePoint list to an access database so that I could run queries and reports using that information. Now when I click "Add New Item" on my Sharepoint site,
    the correct form opens but the fields do not allow me to input any data and some of the formatting for the form has changed (ie: the text boxe fields are no longer centered.  I opened the form in InfoPath and it displays perfectly fine in there but
    not once it's published to the site) . 
    The only way that I've been able to input new data is using Datasheet view in SharePoint.  
    Is there a way to fix this issue?  I really need to be able to have the customized forms for users to fill out the information since most users are not familiar enough with SharePoint to expect them to be able to use Datasheet view to submit their requests. 
    Again, I'm using InfoPath 2013, Access 2013 & SharePoint Server 2010
    If the issue cannot be fixed, how can I disconnect or unlink my SharePoint list from the Access database because when I cliecked on "delete list" from inside Access, a warning popped up stating that it will also delete the list off of SharePoint
    as well.  If I can get the list back to the state it was in before linking to Access then I'll be happy enough to export it excel and then importh the excel file to Access as a work around for reporting purposes since I don't have to run the reports that
    often. 
    Any insight would be very helpful!!

    Hi Bostic,
    I tested the same scenario per your post in my environment, however the InfoPath form was not affected if I used the list as external data in Access database.
    The issue may be due to the browser you used.
    I recommend to verify the things below:
    Change another browser to see how it works.
    Add the site to the trusted zone and add to compatibility settings in Internet Explorer.
    Test with a new list to narrow down the issue scope.
    As a workaround, you can save the list as a template including content, and then create a new list based on this template.
    Learn how to Save a SharePoint List Template:
    http://www.fpweb.net/sharepoint-2010/tutorials/content/save-list-template/#
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Access 2010 Linked to Sharepoint online - avoid direct access to sharepoint stored data

    Hello,
    I have an access 2010 application (front end)  connected to SharePoint online team site (as back end).
    I wish to allow my users to work with the front end but to avoid direct access to the data on SharePoint Online.
    The user will open the access application and it will auto connect & work with SharePoint online.
    How can I implement this?
    Thank you for your help

    Hi,
    According to your description, my understanding is that you want to use Access 2010 to connect the SharePoint Online data.
    In Access 2010, you can connect the SharePoint list as a external datasource like the capture below. It will need to input url and user credentials to access SharePoint site in the wizard. If you want to connect automatically, you will need write some custom
    Micro code to achieve it.
    If you have some question about Micro code to connect SharePoint list automatically, I suggest you can create a new thread in Access Development, you will get more detailed information from there.
    https://social.msdn.microsoft.com/Forums/office/en-US/home?forum=accessdev
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support

  • Reading parameters lists from a text file

    Hi All,
    Using CR XI R2 with VB6  and external .rpt files - - - - -
    In a VB6 app I use VB to loop through my tables to create dynamic parameter lists (CR XI is limited to the number of parameters it can create from the table). This works well but each time the user refreshes the report the same code is run to re-create the parameter list which is redundant and slows down the report(s).
    Is it possible to manually create a series of text files - say each morning - and then read the parameter lists from the text file(s) at runtime instead of doing it on the fly each time?
    Thanks in advance!
    Peter Tyler
    Geneva - Switzerland

    I find this sentence confusing:
    Is it possible to manually create a series of text files - say each morning - and then read the parameter lists from the text file(s) at runtime instead of doing it on the fly each time?
    Typically, runtime means on the fly - I think...
    So, I'm not sure if you are trying to read a saved data report and filter that saved data so that you do not have to hit the database(?).
    Creating a text file is beyond the support of this forum, though that should be a trivial exercise. Reading a text file and passing the results to a parameter is the same thing you are doing already, so I'm not sure where the hang up would be here(?)
    Or - rather than creating a text file, why not create a temp table and query it as you do when you loop through the tables to create dynamic parameter lists(?).
    I'm pretty lost here...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Read object list from a transport datafile

    Hallo,
    does anyone know a way to read the object list from a transport datafile.
    The problem is, that the rewuest is not added to the STMS an so the files are not known by the STMS. But data and cofile is stored in the corresponding folders of the transport management system.
    Thanks
    Arnfried

    Hello,
    Have you tried to add the request to the import queue?
    While displaying the import  queue  Extras->Other Requests->Add
    Regards
    Greg Kern

  • How to configure MS-Access 2010 DB details on weblogc using DBAdapter

    Hi Experts,
    Can any one help me how to configure MS-Access 2010 DB details on weblogic 11g using DBAdapters.
    If you provide step by step instuction, it is very usful to me.
    If you have any screen shots you can any one please send a file to my mail ID:[email protected]
    My Requirement:
    I need to fetch 3 columns data (product code/ serial numer and serial status) from MS-Access 2010 and store it on oracle 11g, for that I have wrote a web service code and I need to make it automation. I don't have any IDEA, how to make this web serevice as automation (automation means, when ever new record stored in MS-Access data I need to fetch newly created record from MS-Access 2010 and send it to Oracle 11g)
    Note: MS- Access 2010 present at vision system and Oracle 11g installed in linux server.
    Thanks,
    Phani

    Hi,
    I am also facing the same issue, not sure about what url to use. And also the login webservice doesn't work while I am testing using http://localhost:81/RTC/RTCService.asmx. It always throwing the following error
    " Unable to cast COM object of type 'RTCLib.RTCClientClass' to interface type 'RTCLib.IRTCClient'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{07829E45-9A34-408E-A011-BDDF13487CD1}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."
    Is the current owc_lcs.zip support MS Office Communication Server 2007?
    Please share the configuration step if anyone already integrated OCS 2007.
    Thanks,
    -Mukesh.
    Edited by: user9127933 on Feb 19, 2010 4:05 AM

  • How to make report with access 2010 from SharePoint Discussion lists 2013

    HI,
    I want to make an access report from SharePoint Discussion lists 2013. When i open the list with access, the body of the list is in HTML format in access. Also if i reply something to one subject in the discussion, the reply is not mapped to that subject
    but instead it is shown as a separate entry in the database.
    Anyone can please help?
    SAN
    Santhiya
    Santhiya

    Hi Santhiya,
    I have seen a similar post from you, my understanding is that you wonder that the reply is mapped to the related subject. You can take a look at Daniel's reply in the following thread:
    http://social.technet.microsoft.com/Forums/en-US/dfb5bcb9-0076-412a-b34f-46aa9cfba876/how-to-make-report-with-access-2010-from-sharepoint-discussion-lists-2013?forum=sharepointgeneral
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • How to populate a sharepoint 2010 list from the active directory. How to populate a sharepoint 2010 list with all sharepoint user profiles

    How to populate a sharepoint 2010 from the active directory.
    I want a list of all the computers in the active directory,
    another one with all users.
    I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
    Thanks
    sz

    While
    the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources.  Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
    information that are already in the system?  Now you can with a little InfoPath customization on the contacts list. 
    Here’s our plan:
    Create the contacts list, and open in InfoPath
    Create a data connection to the User Profile web service
    Customize the form adding some text, a people picker and a button
    Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
    Let’s get going!  Before we begin, make sure you have InfoPath 2010 installed locally on your computer.  I also want to give credit Laura
    Rogers and Darvish Shadravan’s book Using
    Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step.  I know it looks like a lot of steps, but it’s easy once you get the hang of it.
    So obviously we need a contacts list.  If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
    From the list, click the List tab on the ribbon, then click Customize form:
    So now we have our form open in InfoPath 2010.  Let’s add our elements to the form. 
    Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
    Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon.  This will add a column to the contacts list called group.
    Below the people picker, insert a button control from the same section of the ribbon as above.  With the button still highlighted, click the Control Tools|Properties tab on the ribbon. 
    Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
    You can drag the button control a little larger to account for the text.
    We should end up with something like this:
    Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
    Add a data connection to the User Profile Service
    Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
    For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL.  Click Next.
    Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
    For the operation, choose GetUserProfileByName.  Click Next.
    Click Next on the next two screens.
    On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
    Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
    Tell the form to read the user from the people picker control
    Click the Home tab on the ribbon.
    Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
    In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
    Leave the condition to default (none – rule runs when button is clicked).
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Click the Show advanced view on the bottom.  At the top, click the drop down and choose the GetUserProfileByName
    (Secondary) option.  Expand myFields and queryFields to the last option and highlightAccountName.  Click ok. 
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
    connection as Main. Expand dataFields, then mySharePointListItem_RW.  At the bottom you should see a folder called group (the people picker control we just added to the form).  Expand this, then pc:Person,
    and highlightAccountId.  Click Ok twice to get back to the Rules pane.
    If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user.  So we need to tell the form what user to load the data for.  We take the AccountID field from the people
    picker control and inject into the AccountName query field of the User Profile Service data connection. 
    Load the user profile service information for the chosen user
    Click the Add button next to “Run these actions:”, and choose Query for data.
    In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
    We’re closing in on our goal.  Let’s see our progress.  We should see something like this:
    Now that we have the user’s data read into the form, we can populate the fields in the contact form.  The number of steps to complete will depend on how many fields you want to populate.  We need to add an action step for
    each field.  I’ll show you one example and then you will just repeat the steps for the other fields.  Let’s update the Job Title field.
    Populate the contact form fields with existing user’s data
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Highlight the field Job Title.
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button.  Click the Show advanced view on the bottom. At the top, click the
    drop down and choose theGetUserProfileByName (Secondary) option.  Expand the fields all the way down until you see the Value field.  Highlight it but don’t click ok, but click the Filter
    Data button, then Add. 
    For the first dropdown that says Value, choose Select a field or group.   The value field will be highlighted, but click the field Name field
    under PropertyData.  Click Ok. 
    In the blank field after “is equal to”, click in the box and choose Type text.  Then type the text Title. 
    Click ok until you get back to the Manage Rules pane.  The last previous screen will look like this.
    We’re going to update common fields that are in the user’s profile, and likely from Active Directory.  You can update fields like first and last name, company, mobile and work phone number, etc.  For the other fields, the
    steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change.  Here’s what the rules look like when we’re done:
    We’re all done, good work!  You can preview the form and try it now.  Click Ctrl+Shift+B to preview the form.  Once you’re satisfied, you can publish the form back to the library.  Click File –> Quick
    Publish.  Once it’s done, you will get confirmation:
    Now open your form in SharePoint.  From the contact list, click Add new item.  Type in a name, and click the button and watch the magic happen!

Maybe you are looking for

  • How to send spool by email

    Hi, I have a requirement where I need to send report to multiple ned user. The program runs daily once and generate one spool no daily. I have this spool no. Can anyone tell me how to send this spool by email . If  FM SO_DOCUMENT_SEND_API1, how shoul

  • JTree Renderer/Editor

    I have a custom renderer for my JTree that uses a JPanel with multiple fields within it. I am using the same JPanel for editing as well within a custom editor that extends the DefaultCellEditor. When I select to edit, it edits okay. When I focus away

  • Read a property file value and display in jsp page

    I need a solution for the below mentioned scenario, I want to read a value from the property file in JSP page. For Example, Let us have a property file called A.properties, in the file, we have a value, username = Sam. I want to bring this value in t

  • Detect changes in an instance

    Hello, how can I detect changes in an instantiated object? I could serialize the object and write it into a file. After some minutes I could write it a second time into a file. Now I could compare the two files. But I thing this is not the best way f

  • Maximum size of PDF file?

    I'm assembling a book comprised mostly of photos - it will contain approximately one hundred 10MB photos (1 GB). I want to then convert the (Open Office / .odt) document to PDF. Is there any problem with generating a file this large? If curious about