599CD.com Access Calendar Updates   Collapse Menus
 
 
NEW Courses - Access Imaging, Excel 2007 Level 5 dismiss
 
   
 

What's New?  |  Courses  |  Theater  |  Demo  |  Tips  |  Blog  |  Forums  |  Search  |  Help  |  Order

 
What do you want to learn today? 
 
 

Access Web Data Sync Seminar
Use Access to Power your Web Site
Get Data From the Web into Access

 
This seminar covers integrating your Microsoft Access database and your Web Site. You will learn how to use Access to feed your Web Site with data and use Access to read information from the Web. Click here to watch a video explaining the goals for this seminar, or scroll down for more information.

AccessLearningZone.com
Click to Play:   Flash  |  Windows Media


 

 
Seminars - Access Web Data Synchronization
Description: Seminar for downloading data from the Web into Access, and using Access to populate Web page data.
Versions: We will use Access 2007, Expression Web 1.0 XP, and Classic ASP. This seminar is valid for any version of Access from 2000 to 2007, and you may also use Microsoft FrontPage 2000 to 2003 as your Web editor, instead of Expression Web.
Pre-Requisites: HTML 101 strongly recommended
ASP 101 recommended
Access 101 - 201 helpful
Visual Basic 101 helpful but optional
FrontPage 101 - 102 helpful
Running Time: Over Five (5) Hours
Cost: $149

 

This seminar has three main goals. You will learn how to:

1. Use Access to pull information off of Web pages
2. Collect data on your Web site and download it into Access
3. Update your Web site with data from your Access database
 

You will begin by learning how to pull information from different Web pages into your Access database. We'll see how to read the current temperature, and how to pull down current stock prices.


 

Next, you will learn how to create a customer data collection database on your web site. You will collect names and email addresses and then pull that information down into your Access database.


 

Then you will learn how to use Access to maintain a product database and upload that information to your Web site. The benefit is that someone with absolutely no skills with Access or Web design can maintain and update your Web site with just the click of one button.


 

You will learn how to use the Microsoft Web Browser control inside of Access so you can use it to load and analyze any page on the Web.


 

We'll program a timer event to make your Access database automatically go out to the Web every couple of minutes to download real-time stock quotes and store them in your database for analysis.


 

Next you will learn how to create a form on your Web site to collect user information: name, email address, etc.


 

Then we'll learn how to use Access to download that data from our Web site so we can collect the names and addresses every day - or whenever there is new data.


 

Next we'll learn how to use our Access database to control the content of our Web site. We'll store the text for each of our Web pages in our Access database and then with the click of a button be able to update our Web site. This way, someone who doesn't know Web design can easily update the content on your Web site.


 

Finally, we'll do the same thing with a product database. We'll create a local product table and form in our Access database, and then with the click of a button update our Web site with all of the product information that has recently changed. Again, it's one-click maintenance of your Web site, and it allows you to synchronize the data between both databases.


 

 

This seminar is perfect for anyone who wants to work with their Access database and the Web. Whether you're pulling information down from your Web site, collecting data from other sites, or even pushing information back up to the Web, this seminar is for you.

This seminar is long (over five hours) but it's broken up into 30 easily managed lessons of about 8 to 15 minutes each. You can sit down, watch a lesson, review the material, test the code out yourself, and experiment. Do a little bit each day. It's long, but it's comprehensive - you won't miss a single step as I've recorded everything from start to finish.

All of the sample database files are available on the Web site (instructions on where to download them are in the course videos). They are available in Access 2007 and 2000 formats. There is also an optional printed (or PDF) handbook you can purchase to go with the course that has full screen shots and source code listings to follow along with - or refer back to afterward.

You can use the information from this seminar to gather data from Web sites, collect data from your own site, keep your Web site information up-to-date, etc. The list goes on, and the sky's the limit. Of course, if you have any questions about whether or not this seminar is for you, please contact me.
 

 

Complete Seminar Outline - Topics Covered

0. Introduction (14:17)
Topics Covered
Pre-Requisites
Software Required
Important Information

1. WebBrowser Control (9:23)
Adding WebBrowser in Access 2007
Adding WebBrowser in Access 2003
Adding WebBrowser in Access 2000
Command Button to Go To Web Page URL
WebBrowser0.Navigate

2. WebBrowser Navigation (9:14)
User Input URL for WebBrowser
Add Text Box URL Control
Check if the WebBrowser Navigating?
IsNavigating Check Box
WebBrowser DocumentComplete
WebBrowser DownloadBegin

3. Reading HTML & Page Text (10:21)
Show Current URL
DocumentComplete URL Parameter
Read HTML in a Web Page
Read Text in a Web Page
For Each Next Loop
WebBrowser.Document.ALL
OuterHTML
OuterText

4. Parsing Page Data (10:15)
Understanding URLs
URL Parameters (QueryString)
Use Mobile Versions if Possible
Parsing Page Data
String Manipulation
InStr, Mid Functions
Reading Weather Data
Finding the Current Temperature

5. Insert Data Into Table With SQL (9:14)
Create TemperatureT Table
Append Query
INSERT SQL Statement
DoCmd.RunSQL
DoCmd.SetWarnings

6. Insert Data With Recordset (9:29)
setup Recordset
OpenRecordset
Save Data
Recordset Issues With Access 2000
Microsoft DAO Object Library
Declaration Issues With Access 2003
Option Explicit
Timing Issues With Access 2003
IsNull Problem

7. Automated Download With Timer (9:25)
OnTimer Event
Timer Interval in Milliseconds
Navigate Automatically
Avoid Multiple Simulataneous Events
Event Running Indicator

8. Separate Timer Form (10:54)
Create a Timer Form to Launch Events
DoCmd.OpenForm
Public Sub LoadURL
Integer Division and Modulus
While Wend Loop
DoEvents
DoCmd.Close

9. Recording Multiple Events (12:17)
Checking Temp in Multiple ZIP Codes
Adding ZIP Code to Table
Stop Timer Checkbox
Recordset to Loop Through ZIP Codes
Recordset While Loop
rs.EOF
rs.MoveNext

10. Checking Stock Quotes (8:45)
Copy Web Form
Me Keyword
Edit VB Code for Stocks
Using Quote.com to Get Stocks

11. Working With Text Files, Part 1 (10:38)
Why Use Text Files?
Analyzing Data Line by Line
Creating a Temporary Text File
Writing Text Files
Open Text File for Output
Problem with Windows Vista Security
Reading Text Files
Open Text File for Input
Line Input
Text File EOF
Left String Function
CSng Function - Convert String to Single

12. Working With Text Files, Part 2 (7:22)
Modifying our Recordset
Saving the Stock History Data
Invalid Use of Null
Debugging Break Points
Turn on the Debug Toolbar
Step Into, Over, Out of Code Lines

13. Working With Text Files, Part 3 (10:27)
Replace Function
CLng Function - Convert to Long Integer
Switching to Stocks.mobi
Viewing the HTML of a Web Page
View Source
Form Post Problem
Converting Form Post to Query String
Adjust Code for New Data
Storing the Stock Data

14. Multiple Automated Stock Quotes (9:41)
Add Check Stock Quotes to Timer Form
Create Stock Lookup Table
Automate Lookup of Multiple Stocks

15. Acquire Data on Your Web Site (12:35)
Using Expression Web or FrontPage
What if you use a different Web Editor?
Using ASP (Active Server Pages)
For More Info See my ASP Courses
Also See Web Database Seminar
Open my Web Site in Expression Web
Create a SubSite in my Web for Data Collection
Create an HTML Form to Collect Data
Database Creation Wizard
fpdb Folder
Global.ASA File - Don't Touch It

16. Custom Data Collection ASP Page (15:32)
You can't just drop a database in your Web
Clean up the Junk from the HTML Form
Create our own Submit.asp
Request Data from Web Form
Perform Data Validation (Missing or Bad Data)
Saving Data to the Database

17. Page to Display Collected Data (9:04)
ASP Code to Display All Collected Records
Basic Security for Your Display Page

18. Download Collected Data to Access (15:19)
Create Another Access WebForm
Modify Recordset for New Data
Gather Data from Web Site

19. Delete Records from Server, Part 1 (8:41)
ASP Page to Delete All Server Records
Modifying Access WebForm to Delete Records
Specify Operating Mode
AnalyzeDeleteRecords Sub
Dealing with No Records to Display

20. Delete Records from Server, Part 2 (7:41)
Browser Caching Problems with IE
Careful With Your IF/Then Logic

21. Virtual Page Data on Web Site (11:46)
Create a Virtual Page Database
Modify Access Database on the Web Site
Create a Virtual News and Sales Data Page

22. Local Virtual Page Database (5:24)
Create Local Virtual Page Data Table / Form
HasChanged Event & Indicator

23. Post Data From Access to Web, Part 1 (9:14)
Build ASP Page to Accept Data from Access
New WebForm to Post Data to Web Site

24. Post Data From Access to Web, Part 2 (10:00)

25. Posting Large Fields to Web, Part 1 (10:54)
Create HTML Web Form to Accept Data
Give your HTML Form a Name

26. Posting Large Fields to Web, Part 2 (12:24)
Set Web Form Values from JavaScript in VBA
Clicking a Submit Button with Code
Converting Line Breaks to BR

27. Product Database Access to Web, Part 1 (11:45)
Create Product Table for Access DB
Create Form and Database on Web Site
Update Field Types in Web Database

28. Product Database Access to Web, Part 2 (10:38)
Auto Add New Records if Not Found
Create a ProductF Form in Access
HasChanged BeforeUpdate event
Update WebForm code

29. Display Product Listing on Web Site (13:30)
Build Product List ASP Code on Web Site
Design Loop with Records to Display Table
Add Picture URLs
Get Images from Web, Store on Server

30. Review (4:15)

 


 

 
 

Huge Discounts Available
When you purchase multiple classes together
Huge savings up to 50% off! Order Now.
 

Student Interaction: Access Web Data Sync Seminar

Richard on 1/1/2009:  This seminar covers integrating your Microsoft Access database and your Web Site. You will learn how to use Access to feed your Web Site with data and use Access to read information from the Web. This seminar has three main goals. You will learn how to: 1. Use Access to pull information off of Web pages 2. Collect data on your Web site and download it into Access 3. Update your Web site with data from your Access database
 Harry on 7/18/2009: I'm curious why you don't declare your record set variables as DAO.Database. It saves having to worry about Reference hiarchy.
 Alan Hill on 7/19/2009: About 2:20 into the video You did a trick with associating a label with a textbox. I have been using Access 2007 for longer than you and I did not know that. Thanks Regards Alan Hill
Richard Rost on 7/20/2009: Alan, this trick (cutting and pasting a label to associate it with a text box) has been around since Access 2000 or XP I believe. It's not unique to 2007. I could have sworn I mentioned it in another one of my videos. :)
Richard Rost on 7/20/2009: Harry, that's a very good point you make. I suppose it's because that's how I've always done it. I guess because I almost NEVER use ADO, and this way I don't have to keep making references to DAO throughout my entire database. I can just change the references ONCE and never have to think about it again (for this database). But what you suggest is of course absolutely correct.
Harry on 7/20/2009: I, on the other hand, have always declared ADO because that's what I was shown how to do and (when 2003 was newish) that's what MS said was the coming standard as I knew the main db I work on would be ported to SQL Server. Question: 1) am I right that DAO won't work with Server back end? 2) Does the flicker issue still remain (AC2003 and up) and is that the only reason why it might be advantageous not to have unassociated labels?
Richard Rost on 7/21/2009: Harry, Microsoft flip-flopped on the whole ADO/DAO thing. First, DAO was the standard. Then with Access XP or 2003 (I can't remember which) they switch to ADO as the default. Now it's back to DAO as the default. This is why I've always gotten in the habit of just moving the DAO reference FIRST no matter which version I'm using. If you're working with a linked SQL SERVER table in your Access database, then YES, you can use DAO to access it. If you're connecting directly to the server, then you have to use ADO. I've personally only encountered the flicker issue with Access 2003 running under Vista. If you have 2003 under XP or earlier you're fine. If you have Vista, use Access 2007 and you're fine. Other than that, I can't say. In my office, I use Access 2000 with Windows 2000 for my customer database (rock solid and stable, even though lacking in some features). For new databases and development I've been using Access 2007 under Vista with few complaints. But you see, I waited over a YEAR after both Access 2007 and Vista were released to start using them. Let someone ELSE find the bugs.
Bill on 8/1/2009: Richard, I am trying to use your WebForm3F to download data from a web site. The site I chose to test against was "http://www.palottery.state.pa.us/". When I open the Form the code runs (Before I click on the Navigate Button). It updates the table perfectly and then runs again and aborts with a key error the second time it tries the update. Any ideas as to how this can happen? Many thanks.... Bill
Richard Rost on 8/3/2009: The page shouldn't load until you issue the NAVIGATE command. Can you load the page manually? Try to break it down into two buttons that load the page, and then analyze the page. The problem with trying to pull the data off of someone's web site is that it's different a lot of the time... you might have to just experiment with it. See if you can figure out why the page is loading twice (by examining your code) and that might help you. I loaded the page fine in my browser and it didn't look like there was anything odd in it. Perhaps its just a quirk on your system. This is why I really like MOBILE versions of web sites - they load quicker and easier, and without all kinds of crap (graphics, Flash animations, etc.). Is there a mobile version of this page you can use? If you're just looking for the PA lottery results, how about: http://www.nbc15now.com/wap/lottery/?sid=85&state=pa&search=y This page looks like it would be real easy to parse.
Bill on 8/4/2009: Richard, This is very strange. When I change the code to point to the website you suggested, the form still runs the VBA code as soon as it opens but it still goes to the old URL. I've checked the code and I don't mention the old website anywhere. Where is it coming from and why does the form run the code when it opens? There are no events associated with the form, only the Navigate button which never gets the chance to run..... Any help would be appreciated..... Bill
Richard Rost on 8/4/2009: Bill, it's got to be something in your database. Did you manually set the URL property of the WebBrowser control (in the control's properties)? That would cause it to launch that URL before the code even runs.
 
 

You may want to read these articles from the 599CD Blog:

 

 

Need Help
 
Do you have questions about Word, Excel, Access, Web Design, or computers in general? Just ask us anything you'd like. Click here for assistance.
 

Get Free Tips & Tricks
 

Join our mailing list today and get information on our Free Tips & Tricks Newsletter including free video tutorials, eBooks, live seminars, and more.

Email:
Name:
Type in the word to the left:
 
Your email will be kept 100% safe and will never be given to 3rd parties.
 


CLICK HERE for a FREE lesson



Order your first 599CD course now.
Your Satisfaction is Guaranteed!


Subscribe to our RSS FeedWhat's This?

599CD on Facebook  599CD on Twitter  Subscribe to RSS Feed  Add to Live Bookmarks  Add to My AOL  Add to MyYahoo  Add to Google Reader or Homepage    hide help

599CD Home   |   Learn More   |   What's New?   |   Contact Us   |   Free Demo   |   FAQs   |   Order Now   |   Affiliate Program   |   TechHelp   |   MYOLP   |   Jobs   |   Downloads   |   Handbooks  (Text)   |    Mailing List   |   Lost Passwords   |   Referral Program   |   Online Poll   |   Corporate, Educational, Government, Non-Profit Sales   |   Message Forums   |   Testimonials   |   Privacy Policy   |   Free Gift CDs   |   Tips & Tricks