Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2020
    Posts
    7

    Question REST API calls

    Within MS Access, is it possible to interrogate a remote website? The site posts relevant field names and provides sample code for reference. Not sure of the following:


    1. Is it possible?
    2. Would I need to write in another language and execute through API calls?
    3. If 2='Y', is MS Access friendlier to one particular language over another?
    4. Or am I best off writing code, such as VBA module?


    I have a pretty good programming history. Unfortunately, for personal reasons I haven't really coded since 1996. Still, if at all possible, please respond. Including code is good. I have to learn VBA eventually.

    Lastly, if I MUST write code, what is/are the best book(s) for learning VBA for Access?

    Thank you,

    Jazz Engineer

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,724
    I have no experience with REST API, But I found this that may give some insight.
    Good luck.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'm actually working on something now where I am pushing service requests to an api, but also learned how to pull data. Looks like:

    Code:
        Dim req                   As New MSXML2.XMLHTTP60
        Dim reqURL                As String
     
        reqURL = "https://..."
    
        req.Open "GET", reqURL, False
        req.setRequestHeader "Accept", "application/json"
        req.setRequestHeader "ApiKey", "xxx"
        req.send
    
        Debug.Print req.Status & " - " & req.statusText
        Debug.Print req.responseText
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Join Date
    Dec 2020
    Posts
    7
    Hey,

    Thanks for the links. They'll give me a lot to research.

  5. #5
    Join Date
    Dec 2020
    Posts
    7
    Orange (that your screen name?),

    Thanks. You provided a lot of material for study.

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,724
    JE,
    That's my screen name. Lots of materials in the links in my signature. Many of these reviewed, used and recorded over the years.
    Hope you find them helpful. Good luck.

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

Similar Threads

  1. VBA REST API to GET SMS from Twilio
    By GraeagleBill in forum Programming
    Replies: 39
    Last Post: 06-28-2019, 10:54 AM
  2. REST Endpoints
    By foo in forum Programming
    Replies: 1
    Last Post: 12-04-2016, 07:53 PM
  3. REST api POST method
    By irade92 in forum Programming
    Replies: 7
    Last Post: 02-03-2015, 03:21 PM
  4. Rest Button for Form Inputs
    By Rustin788 in forum Forms
    Replies: 0
    Last Post: 11-25-2014, 07:53 AM
  5. Help with subforms (and the rest)
    By Franco27 in forum Reports
    Replies: 0
    Last Post: 03-14-2011, 09:43 AM

Tags for this Thread

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