ISBN -> bookdata Lookup to fill in a database

后端 未结 5 1854
情歌与酒
情歌与酒 2021-01-03 13:37

Ok, I wanting to database a small library.

I\'ve only had limited experience with databases, and none with querying from a webserver.

I\'m going to want to r

5条回答
  •  伪装坚强ぢ
    2021-01-03 13:54

    This is an incomplete answer, but it should get you started (I've not worked with XML data as return).

    This code has the basics:

      Dim oHttp As Object
    
      Set oHttp = CreateObject("Microsoft.XMLHTTP")
      oHttp.Open "GET", "https://isbndb.com/api/books.xml?access_key=YourKey&results=texts&index1=isbn&value1=YourISBN", False
      oHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
      oHttp.Send vbNullString
      Debug.Print oHttp.responseText
    

    The response from the web page is in the .responseText property of the XMLHTTP object. How you process that is beyond me. I know that one of the Access newsgroup gurus has published a tutorial on consuming web services from Access, but I can't locate it. This article might have something to do with the issue:

    http://support.microsoft.com/kb/285329/en-us

提交回复
热议问题