Solved

How best to Send to web page and process the result with Access

Posted on 2014-03-06
2
438 Views
Last Modified: 2014-03-06
Hi,

I have used the methods 'followhyperlink' and acCmdOpenHyperLink to launch web pages for user interaction, but now I have the following problem and need so guidance on how best to achieve the result.

I want to use the SMSGlobal facilities to send SMS messages from an Access 2010 app. It is easy enough to construct the http command with signin, password, tomobile etc. The result lauches the website as a blank page and returns a one line result/error message.

I would like to send the link and receive the result from the page back into my application without showing on the users screen the actual webpage interaction how can this be best achieved?
0
Comment
Question by:ynot8669
  • 2
2 Comments
 

Author Comment

by:ynot8669
ID: 39911456
The web page result looks like this:
<html><head><META content="IE=5.0000" http-equiv="X-UA-Compatible"></head><body>OK: 0; Sent queued message ID: 2045e550e7356343 SMSGlobalMsgID:6666903908584126
</body></html>

So I need help with DOM in vba to extract the body text only
0
 

Accepted Solution

by:
ynot8669 earned 0 total points
ID: 39911535
Solved it before getting an answer via:

Function Testit()
 Dim text As String
 text = GetHTML("http://www.smsglobal.com/http-api.php?action=sendsms&user=xxxxxxxx&password=xxxxxxxx&&from=61999999999&to=6188888888text=Hello%20world")
 MsgBox text
End Function

Function GetHTML(sURL)
 ' Create an xmlhttp object:
 With CreateObject("Microsoft.XMLHTTP")
   .Open "GET", sURL, False
   .Send
  GetHTML = .responseTEXT
End With
End Function
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now