Access 2007-2013
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 
 
 

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.


 

 
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 up, and you may also use Microsoft FrontPage 2000 to 2003 as your web editor, instead of Expression Web (or really any web editor you choose).
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: $189

 

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)

 


 

 
 
 

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.
Alan Fern on 5/6/2010: What is the specification for the web server to enable this to work. Is it just for Windows servers and is any special server software required.

Reply from Richard Rost:

I use only Windows servers running Frontpage Server Extensions. The lessons in this seminar rely on that. However, I have had students tell me that they were able to use their Linux server databases just fine with my lessons (as long as your server supports ASP).

The bulk of this particular seminar focuses on the work in Access - not on the server. If you can configure a database connection on your server, then you shouldn't have any problems.

By the way, I have set up "cheap" web hosting accounts with several different vendors like GoDaddy and 1&1 using their "Windows Hosting" packages... and have never had a problem uploading an Access database to their servers and using it as the database connection. Again, as long as the server supports ASP, you're fine.

Mubeezi Micah on 10/18/2010: Dear Richard,

I am yet to watch the full seminar to the end but it is really amazing.There is a lot of cool nes stuff inside
On question: At 9:01 i notice that the code runs normally without Diming L1, L2, D and MyTemp. I actually expected to see an error but there wasn't. Are these reserved words? I am more than surprised because i did nt see you insert a module r diming them in an earlier lesson

Please let me know. Thank you

MICAH


Reply from Richard Rost:

In VB or VBA its not NECESSARY to DIM your variables unless "option explicit" is specified. Its good practice to do so, but your code should work without it.

Mubeezi Micah on 10/19/2010: Thank you Richard for quick the explanation. It is clear now. Yesternight, i noticed that you eventually explained the reason in video number six of this very seminar at time index 7:01.
Mubeezi Micah on 4/24/2011: Dear Richard,

I was taking a pick at this seminar again. It seems we forgot to add db.close at time index 3.48

MICAH

Reply from Richard Rost:

Uh oh. Thanks for the notice! Sometimes I do add these things, but the video segment gets dropped. Also, even if you forget lines of code like this, Access will implicitly close your objects when the sub or function ends... it's supposed to, anyway. It's best to explicitly do it yourself, but if you forget, Access usually cleans up after you.

Mubeezi Micah on 5/21/2011: Dear Richard,

Having seen this lesson at 3.29, i thought i would add some flavour to my main menu by adding a clock found at [http://www.poodwaddle.com/applets/tzclock.swf]
However, the default city is NewYork. I would like to change it to Kampala but i can't figure out how i can modify this

Please advice

MICAH

Reply from Richard Rost:

No idea. It's a SWF file which means it was created in Adobe Flash. I don't see any way to customize it. You'll have to contact the developer.

Fred Robinson on 6/4/2011: I have been working through your class and everything was fine until I go and look at the data in the access file (Nothing There)
Alex Hedley on 6/5/2011: Fred when you say everything was fine was data being written to the tables during the process?

Have you finished the whole course?

What point are you at?

Alex

Fred on 6/5/2011: 12:03 on lesson 15
My be site I am using is americancastle.Net

No mater what I try nothing is showing in access

Alex Hedley on 6/5/2011: Sorry it's been a while since I did that course but are you saying that the data you are inputing into the form on the American Castle page isn't adding to your table.

Have you made the page Richard makes or have you just amended the code straight into your database.
I would suggest copying it exactly first, testing it, then when you know it works you can amend the code to your own database etc.

So a few things I can think of is that your variable names don't match up or you aren't connecting to the database correctly.

Your action page that processes the data is called default.asp which is the page that has the form on, are you processing the code using this page or do you have process-form.asp, I'm sure that is the usual method Rich uses.

Can you share the code here?
Don't leave any passwords etc if you're using them!

If the code is quite long you can use a website called pastie to show us, just paste the code into the textbox, click the paste button then add the link in a comment here. [http://pastie.org/###]

Alex

Fred on 6/7/2011: I have followed set by step and uploaded to a blank site I have hosted on Godaddy I have enabled front page
The form seems to be working just no data in the table

Alex Hedley on 6/7/2011: Hi Fred,
There is a confirmation message after submitting new data which seems strange if it isn't saving to the database.

Do you only have one database in your website?

Two things to do

  1. Redo Lesson 15, delete the database and page then recreate it

  2. Go to Lesson 16 as this is better way to create a form and link to the table, it gives more control



Hope it works out
Alex

brian lang on 7/15/2011: hi Richard is it possible to send me the small code for checking a e-mail address is valid or not?

Access web Synch
16. Data Collection Page (15:32)
TIME INDEX 07:15 -

many thanks
Brian

Jim Gray on 1/6/2012: Richard,

I have built a simple database for our Volunteer Ambulance service using all of the Access lessons from beginning to developer level. As you mentioned is will remain a work in progress and be added to as other things need done or I learn new things. One thing we are lacking is the ability to have a common sign up sheet for folks to volunteer their time. We currently use a form from www.mysignup.com and it works ok but I then have to transfer that data manually to our database for reimbursements. Couldn't I use this seminar to teach me how to buld a signup sheet of our own and have the data entered by all the volunteers automatically go into the database? As always, thanks for your time in answering these posts.


Alex Hedley on 1/6/2012: Hi Jim,

This will show you the process of data input and collection.

You might also want to look at the spec for the ASP Seminar, depending if you wish to do more with your site.
http://www.599cd.com/site/courselist/seminars/webdatabase/
This shows making a website with an Access db backend.
Check out the sample lessons and see what you think.
Al

Scott Adkins on 1/13/2012: Richard I am having the problem of: It appears that the istr is not recognizine the degree symbol. I copied and pasted it just as you did in the class.

I am getting runtime error #5 and it highlights the myTemp line in vba.

My question is that because there are a couple of DegreesF in the pagedata textbox?

Scott Adkins on 1/15/2012: Richard, I am getting a script error on the mobile.quote.com site. It is saying Line 92, Char 1, expected identifier, string, or number
code 0

any ideas?

eddy geijselaers on 2/1/2012: Hi Richard,

Using Access 2002 (XP) I get, like Scott Atkins, probably the sam message.
Trying to translate from Dutch like, "illegal procedure call or illegal argument.

Using your 2007 file in Acc 2010
I get some error messages on webform 2, webform 5 seems not functional at all.

Would you be so kind to give some AC 2010 directions, please

with kind regards
eddy peanut

Mubeezi M on 11/18/2012: Dear Richard,

Please explain to me one more time.
I would like users to be able to enter data while on the go (via the website). I would like to use ASP rather than Sharepoint.
Please confirm that in order to use ASP, i must buy Windows server (i have read somewhere that ASP is an integral part of Windows server since 2003).
Secondly, I have seen many Windows server products including 2003, 2008, 2012, Enterprise etc. Which one matches closest to your lessons on linking an Access db to the web? I wouldnt want to buy Windows server product then i struggle to relate the lesson to may real circumstances that i will be facing.

Lastly, is there anything else i might need to achieve my objective? When i was going through the site, you mention "pcAnywhere". Do i have to get this separately?

If i were to use Sharepoint, would i still need to buy Windows server?

To many questions :). Thank you again for your guidance.

MICAH

Reply from Richard Rost:

Micah, you don't have to buy Windows Server yourself. You could always have your database hosted by an ISP. For example, I currently use GoDaddy. Just make sure you get their WINDOWS hosting which includes ASP and Access database (or even SQL Server) hosting. But yes, if you want to have ASP at your own location with your own web site, you'd need a Windows server.

All of the Windows Server versions work fine with my lessons. 99% of the material focuses on the ASP language which hasn't changed at all. Yes, there's now ASP.NET which ADDS a lot of new functions and libraries, but the Classic ASP I teach in my classes works just fine. I still prefer Classic ASP myself (and use it on my site). ASP.NET adds a lot of new features, but also a lot of unnecessary complication.

pcAnywhere is software you can use to remotely log into a computer. If you host your own server you might want it to get in there when you're not physically at the same location. I don't use pcAnywhere anymore. Now I prefer VNC (Virtual Network Computing). There are several open-source FREE VNC clients and servers. I like TightVNC and RealVNC which both work great.

If you were to use Sharepoint and you wanted to host your own server, then YES, you would need a Windows Server. However, again, if you want an ONLINE database, you might want to consider having it hosted for you. You pay one low monthly fee, and they take care of all the setup and maintenance. I pay less than $20 a month, and I have a pretty robust site.

MUBEEZI MICAH on 12/5/2012: Hi Richard,

At time index 9:39, the table ProductT is misspelled as ProcuctT in the SQL statement. I therefore expected an error to pop-up later/next in the video. You corrected other errors but this particular one, i didn't see you fix it in the next lessons. My guess is that you edited this part out of the video away.
Otherwise, i am impressed with this seminar. It provides me with all the techniques i need to build a web based database.

MICAH

Reply from Richard Rost:

I'm surprised you caught that. Yes, sometimes I'm guilty of just editing the video and ALMOST nobody ever catches me.

MUBEEZI M on 12/5/2012: Dear Richard,

Please don't get tired of me!

The people who will be entering data via the website will most probably have a (smart) phone. If i am to create a data entry interface, do i have to in-advance get a domain name that supports mobile phones? From your experience with using ASP, is there any significant difference between programming the "ordinary" domain name [i don't know whether this is the correct name to call it but i guess you understand me] and the ones designed for use by mobile phones? If i do the programming using the "ordinary" domain name, how easy is it to change/append the mobile phone version to it? I wouldn't want to do something in one format and have to redo it completely to fit the users' phone browsers.

Thank you again for your advice.

MICAH

Reply from Richard Rost:

I try to program them both the SAME and just #include different header and footer files based on the browser type. This allows you to create ONE page for the actual STUFF, and then your header and footer files can change all of the formatting for mobile phones. Use the command:

Request.ServerVariables("HTTP_USER_AGENT")

This will tell you what the browser of the visitor is. You can then use an IF statement to determine which header and footer to include.

MUBEEZI M on 12/5/2012: Thank you Richard. That allays my anxiety! MICAH
Mubeezi Micah on 1/6/2013: Dear Richard,

I have pulled down records from the server to my local Access db. However, i dont want to delete the records from the server database.

What i need to do is to check if a record on the server already exists in my local db. if it doesnt, i would like to download it. If it exists, i would like to EDIT the record in my local db to accept the new changes from the server.
Unfortunately, since i am not very familiar with working with Text files, i dont seem to get the logic required to accomplish this task.

Please advice me how i could do this.

MICAH

Reply from Richard Rost:

Well, you could simply make a Yes/No field on your SERVER database indicating when this record is changed. Set it to YES whenever the user submits a change, then you only have to download those. You could even make that a separate run (one batch for NEW records, another download for EDITED records) and then in that run look up the local record and just make changes instead of adding it new. Does that help?

MUBEEZI M on 1/6/2013: Thank you Richard for your help.
MICAH

Jim Gray on 5/8/2013: Alex, Richard

It has taken me a long time to get to this point but I am now ready to design and implement this web sign up facility into my database. The city of Orr has a simple web site and it was my thought that I could tag onto that web site to design a calendar type interface where EMT's could sign up for standby shifts. That data could then be downloaded into my database in some automated fashion so that the biweekly reimbursement would be a simple matter of query and report design and not manual transfer of data that I now go through. I don't see the seminars on the web now that you reference in this reply ( I know I am a couple of years out from my original request). What would be your recommendations now? Thanks for your help on this...


Reply from Richard Rost:

If you want to collect data on your web site and pull that data down into your Access database, then I would still recommend my Web Synch Seminar.

Jim on 5/10/2013: Richard
It looks like Microsoft is abandoning the Expression Web software and version 4 is even downloadable for free from them. Is this product still worth having? Are you transitioning to something else like Dreamweaver? Can we still function with EW4 without issue? Thanks for your advice on this topic.

Reply from Richard Rost:

In December, Microsoft announced that they're discontinuing Expression Studio. They've made Expression Web a free download, but are not going to continue to support it. Looks like they're going to wrap "professional quality" web design into Visual Studio, and leave Expression Web available for everyone else.

Honestly, I haven't fully decided what to do about this as far as my tutorials go. Personally, I still use FrontPage 2003, ASP, and JavaScript for my web sites. Works great for me. But then again, I like old-school HTML and getting my hands dirty writing code. Yes, I need to bring my lessons up to date with some HTML5 and CSS3.

I'll probably put together a simple beginner tutorial for the free Expression Web that's available at the time I get to it. After that, I'll make some advanced web classes for Visual Studio. However, that's going to be a ways off. I'm going to be busy all summer just with the Office 2013 classes I have planned. I'll see what the current state of affairs is when I get to it.

MUBEEZI MICAH on 5/13/2013: Dear Richard,

How can i get to know when such news is released? It is quite disturbing that i paid 250 Canadian dollars for expression web 4 professional on 17/12/2012 for something i would have gotten for free. There were several vendors who were selling it at $150 on Amazon but they even refunded my payment because they could not ship to my country.

MICAH

Reply from Richard Rost:

That does stink, Micah. I would contact the vendor and request a refund. If not, write a STRONG letter to Microsoft.

David Spens on 8/27/2013: I appreciate that your web synch seminar was produced a long time ago, but it is just as relevant today. There are however two questions I would ask.
1. If I am entering a protected page on the web where I have to put in a password and/or name, can I program the vba to do that automatically? If so, how?
2. My website has historic and new data, and I only wish to upload the new data. To achieve this I have set an unique ID with no duplicates in my database, so that when that and subsequent lines of data are about to be imported I get an error message to advise that the import is not allowed as that would create duplicates. Great that is what I want, but can I suppress that error message and jump out of the While not eof(1) - Wend loop when that message occurs? If so, how?
A great seminar which has revolutionised my use of my database, but these extra requirements would make it even better.
Many thanks
David

Reply from Richard Rost:

1. This depends on the kind of form it is. If it's a Windows logon form then I don't think so. If it's an HTML form, then you should be able to.

2. How are you getting the error message? Is it the popup warning in Access? If so, just turn warnings off (Docmd.SetWarnings)


David on 8/30/2013: Many thanks for your suggestion. The second suggestion (turn off warnings) does not seem to work. The message I get is a Microsoft Visual Basic message run-time error '3022' The changes you requested to the table were not successful because they would create duplicate values in the ... primary key ..
I used DoCmd.SetWarnings (False) before the Update of the record set and back again to true afterwards


Reply from Richard Rost:

Hmmm... in that case, you'll have to check each record as you add it with a DLOOKUP statement to see if it's there. If the DLOOKUP returns NULL then you can add it.

David Spens on 8/30/2013: Thanks. That's a lot of programming, but I'll give it a go. David

Reply from Richard Rost:

It's just a few extra lines. Inside your recordset loop for adding the value, just:

X = Nz(DLOOKUP(ID,stuff),0)
If X = 0 then
go ahead and add
Else
its in there, skip it
End If
rs.movenext


David on 8/30/2013: Thanks again.
I tried
If DLookup(myID, "RecordsT", [Table!RecordsT!EntryID]) Then
rs.Update
End If
But got an error message needing a debug.
(myID is the temporary field I am trying to add in the primary field, EntryID, in the table RecordsT)
Any further suggestion would be greatly appreciated.
David


Reply from Richard Rost:

All of your DLOOKUP parameters need to be in quotes, and your equation for the criteria makes no sense. YOu just have a single field there.

X = DLOOKUP("CustomerID","CustomerT","CustomerID=" & Forms!MyForm!SomeField)

Review the DLOOKUP lessons.


omar tikrity on 1/20/2014: Hi Richard

Thanks for the great seminar!

I have followed your lessons but I seem to have one problem when adding records from wunderground.com or other websites.

I am using MS Access 2013; when I click navigate, it adds 5 records into the table i.e. the same temperature 5 times from weather underground.com. I tried a different website and it inserted only 2 records.

It does this both with record sets or SQL.

When it comes to the text files, it brings up the error that the text file is already open and gives me an error message.

It seems to be looping the document_complete several times. Or it runs the document_complete section before the website has finished downloading completely??

Also, when I first open the web form it seems to navigate automatically to the website even before I click navigate. I have copied your code to the letter but I can't understand why?


I would appreciate any help you can give me.

Thanks

Omar

MUBEEZI M on 2/8/2014: Dear Richard,

i use the principles i see in this seminar to acquire data from my website via a text file. It works perfectly well. However, on one computer, the process of acquiring data takes unusually too long (6 to 10 hours.). On other similar computers with windows 8, it takes only about 6 to 15min maximum. what might be different with this computer? I dont know where to start from. Please provide me with some guidance.
Thanks
MICAh

jeff horvate on 10/20/2014: Do you use another www for stock quotes? the page went away.

Reply from Alexander Hedley:

Yahoo Finance might be an alternative.

Uriel Ramirez on 8/18/2015: I liked this seminar and it's very useful, however, I have Access 2010 and I can't find the Active X control from the first lessons. I tried using the Web Navigation control but it seems to be a different time of control. I do not have admin rights over the office installation, so is there any way to simulate or get something close with the web navigation control? If so could you please make an addendum to this course? Thanks.

Reply from Alex Hedley:

MS Article

jeff horvate on 9/19/2016: when I click on button it add 12 rows not just one rows? for example if 86 it put 86. in the table 12 times

Reply from Alex Hedley:

Have you added a loop in your code?

Raivo Karmas on 4/6/2017: Richard, I have developed a pop up form triggered from a command button. The pop up form has a Webbrowser control showing the specific document I want. No problems here. I will never use the Webbrowser to navigate further, so I left of the IsNavigating check box. However, when I want to see the underlying text (Obj.Outertext portion of lesson 3) Access will not recognize the ".Document.All" property in the Webbrowser_DocumentComplete routine. Therefore, I have not been able to pull out any text in my PageText textbox. Any suggestions?

Reply from Alex Hedley:

Are any of the other values printing anything? innertext etc.
Does the file show, I guess so?

Raivo Karmas on 4/10/2017: No properties are recognized. I cannot even get the .Navigate to be recognized. I was wondering if Access 2013 changed anything behind the scenes. Perhaps I need to add a reference or library or something. Sorry for the vague language, but I am new to programming.


Reply from Alex Hedley:

Is it the ActiveX control or the web browser control from the Toolbox?

Raivo Karmas on 4/12/2017: I am using Access 2013, and had no problems getting the webbrowser to find and show the page. I can find the document complete dropdown in the vba code editing section. Within the document complete, however, I cannot get Access to recognize the .Document.All code (it does not capitalize the "D"). It will also not recognize the .navigate code. I wonder if there is a reference library I need to activate or turn on.
 

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

 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP