Solved

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

Posted on 2014-03-06
2
435 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

760 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

18 Experts available now in Live!

Get 1:1 Help Now