Results 1 to 2 of 2
  1. #1
    newbie30 is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2017
    Posts
    15

    Calling an API from my VBA Access form

    Hi All,

    I need to call an API that allows my Database to send data(date, name, reason,email) when the user keys it in the form. I also need to get the data from the URL and update my db with it.



    A value of 0 indicates that details have been updated and -1 indicates some error.

    I tried using this :

    Dim httpReq AsNew MSXML2.ServerXMLHTTP
    httpReq
    .Open "POST","my URL name",False
    httpReq
    .send
    Dim response AsString
    response
    = httpReq.responseText
    Debug
    .Print response

    1. Do I require a Get and a POst operation as I need to both read and send data via the API?
    2. Do you need to get the xml and pass any namespaces in the VBA code?

    I have never done an API call via VBA access 2010, kindlyyy help.

    If you require more details, am happy to provide.

    Thanks
    Newbie




  2. #2
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Can you provide more info?
    Can you show us the url of the site?

    You might get some ideas from this post.
    You could also try Google or Bing and search for sample code.

    I found this on youtube (It has a download sample).

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

Similar Threads

  1. Replies: 12
    Last Post: 10-31-2016, 02:21 PM
  2. Replies: 1
    Last Post: 02-13-2016, 03:48 AM
  3. Calling Microsoft Power Shell from within Access
    By crowegreg in forum Programming
    Replies: 1
    Last Post: 11-18-2014, 02:59 PM
  4. Calling Excel from Access
    By Terry Lawson in forum Programming
    Replies: 2
    Last Post: 02-06-2011, 05:07 AM
  5. Calling Query from different Access DB
    By Jerry8989 in forum Queries
    Replies: 4
    Last Post: 10-02-2009, 08:48 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